mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
parent
d3f5b059bb
commit
0492f44ab9
2 changed files with 32 additions and 34 deletions
|
@ -965,7 +965,7 @@ in
|
|||
nzbhydra2 = handleTest ./nzbhydra2.nix { };
|
||||
ocis = handleTest ./ocis.nix { };
|
||||
oddjobd = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./oddjobd.nix { };
|
||||
obs-studio = handleTest ./obs-studio.nix { };
|
||||
obs-studio = runTest ./obs-studio.nix;
|
||||
oh-my-zsh = handleTest ./oh-my-zsh.nix { };
|
||||
ollama = runTest ./ollama.nix;
|
||||
ollama-cuda = runTestOn [ "x86_64-linux" "aarch64-linux" ] ./ollama-cuda.nix;
|
||||
|
|
|
@ -1,40 +1,38 @@
|
|||
import ./make-test-python.nix (
|
||||
{ ... }:
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
name = "obs-studio";
|
||||
{
|
||||
name = "obs-studio";
|
||||
|
||||
nodes.machine =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./common/x11.nix
|
||||
./common/user-account.nix
|
||||
nodes.machine =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./common/x11.nix
|
||||
./common/user-account.nix
|
||||
];
|
||||
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
wlrobs
|
||||
obs-vkcapture
|
||||
];
|
||||
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
wlrobs
|
||||
obs-vkcapture
|
||||
];
|
||||
enableVirtualCamera = true;
|
||||
};
|
||||
enableVirtualCamera = true;
|
||||
};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
machine.wait_for_x()
|
||||
machine.succeed("obs --version")
|
||||
testScript = ''
|
||||
machine.wait_for_x()
|
||||
machine.succeed("obs --version")
|
||||
|
||||
# virtual camera tests
|
||||
machine.succeed("lsmod | grep v4l2loopback")
|
||||
machine.succeed("ls /dev/video1")
|
||||
machine.succeed("obs --startvirtualcam >&2 &")
|
||||
machine.wait_for_window("OBS")
|
||||
machine.sleep(5)
|
||||
# virtual camera tests
|
||||
machine.succeed("lsmod | grep v4l2loopback")
|
||||
machine.succeed("ls /dev/video1")
|
||||
machine.succeed("obs --startvirtualcam >&2 &")
|
||||
machine.wait_for_window("OBS")
|
||||
machine.sleep(5)
|
||||
|
||||
# test plugins
|
||||
machine.succeed("which obs-vkcapture")
|
||||
'';
|
||||
}
|
||||
)
|
||||
# test plugins
|
||||
machine.succeed("which obs-vkcapture")
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue