diff --git a/nixos/tests/ft2-clone.nix b/nixos/tests/ft2-clone.nix index c4f1475ad710..faea0d30aa50 100644 --- a/nixos/tests/ft2-clone.nix +++ b/nixos/tests/ft2-clone.nix @@ -11,6 +11,13 @@ imports = [ ./common/x11.nix ]; + + boot.kernelModules = [ "snd-dummy" ]; + services.pulseaudio = { + enable = true; + systemWide = true; + }; + services.pipewire.enable = false; environment.systemPackages = [ pkgs.ft2-clone ]; }; @@ -18,8 +25,6 @@ testScript = '' machine.wait_for_x() - # Add a dummy sound card, or the program won't start - machine.execute("modprobe snd-dummy") machine.execute("ft2-clone >&2 &") diff --git a/nixos/tests/pt2-clone.nix b/nixos/tests/pt2-clone.nix index 160431175f8d..de48f93e1ed5 100644 --- a/nixos/tests/pt2-clone.nix +++ b/nixos/tests/pt2-clone.nix @@ -12,7 +12,12 @@ ./common/x11.nix ]; - services.xserver.enable = true; + boot.kernelModules = [ "snd-dummy" ]; + services.pulseaudio = { + enable = true; + systemWide = true; + }; + services.pipewire.enable = false; environment.systemPackages = [ pkgs.pt2-clone ]; }; @@ -20,16 +25,13 @@ testScript = '' machine.wait_for_x() - # Add a dummy sound card, or the program won't start - machine.execute("modprobe snd-dummy") machine.execute("pt2-clone >&2 &") machine.wait_for_window(r"ProTracker") machine.sleep(5) # One of the few words that actually get recognized - if "LENGTH" not in machine.get_screen_text(): - raise Exception("Program did not start successfully") + machine.wait_for_text("LENGTH") machine.screenshot("screen") ''; } diff --git a/nixos/tests/sfxr-qt.nix b/nixos/tests/sfxr-qt.nix index f62eeacafbd5..764911610ed7 100644 --- a/nixos/tests/sfxr-qt.nix +++ b/nixos/tests/sfxr-qt.nix @@ -5,7 +5,7 @@ maintainers = [ fgaz ]; }; - machine = + nodes.machine = { config, pkgs, ... }: { imports = [ @@ -13,6 +13,12 @@ ]; services.xserver.enable = true; + boot.kernelModules = [ "snd-dummy" ]; + services.pulseaudio = { + enable = true; + systemWide = true; + }; + services.pipewire.enable = false; environment.systemPackages = [ pkgs.sfxr-qt ]; };