diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-03-27 11:39:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-27 11:39:40 +0200 |
commit | c2bc9e6c56e5e5a2625cba4701ab2960fcd2efe6 (patch) | |
tree | 4cbc893808bfabec6a27de2b388a3de1cac825b1 /nixos | |
parent | 5cbbec9f2c5263b59bd81c1795855c4d04ed07bd (diff) | |
parent | b9bc59d832bea0bb30c9aff06c18f8e877a4539d (diff) | |
download | nixlib-c2bc9e6c56e5e5a2625cba4701ab2960fcd2efe6.tar nixlib-c2bc9e6c56e5e5a2625cba4701ab2960fcd2efe6.tar.gz nixlib-c2bc9e6c56e5e5a2625cba4701ab2960fcd2efe6.tar.bz2 nixlib-c2bc9e6c56e5e5a2625cba4701ab2960fcd2efe6.tar.lz nixlib-c2bc9e6c56e5e5a2625cba4701ab2960fcd2efe6.tar.xz nixlib-c2bc9e6c56e5e5a2625cba4701ab2960fcd2efe6.tar.zst nixlib-c2bc9e6c56e5e5a2625cba4701ab2960fcd2efe6.zip |
Merge pull request #165009 from fgaz/sfxr-qt/1.5.0
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/sfxr-qt.nix | 32 |
2 files changed, 33 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 413fc5637b61..ab6906cd24e2 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -472,6 +472,7 @@ in seafile = handleTest ./seafile.nix {}; searx = handleTest ./searx.nix {}; service-runner = handleTest ./service-runner.nix {}; + sfxr-qt = handleTest ./sfxr-qt.nix {}; shadow = handleTest ./shadow.nix {}; shadowsocks = handleTest ./shadowsocks {}; shattered-pixel-dungeon = handleTest ./shattered-pixel-dungeon.nix {}; diff --git a/nixos/tests/sfxr-qt.nix b/nixos/tests/sfxr-qt.nix new file mode 100644 index 000000000000..976b9b11fc66 --- /dev/null +++ b/nixos/tests/sfxr-qt.nix @@ -0,0 +1,32 @@ +import ./make-test-python.nix ({ pkgs, ... }: { + name = "sfxr-qt"; + meta = with pkgs.lib.maintainers; { + maintainers = [ fgaz ]; + }; + + machine = { config, pkgs, ... }: { + imports = [ + ./common/x11.nix + ]; + + services.xserver.enable = true; + sound.enable = true; + environment.systemPackages = [ pkgs.sfxr-qt ]; + }; + + enableOCR = true; + + testScript = + '' + machine.wait_for_x() + # Add a dummy sound card, or the program won't start + machine.execute("modprobe snd-dummy") + + machine.execute("sfxr-qt >&2 &") + + machine.wait_for_window(r"sfxr") + machine.sleep(10) + machine.wait_for_text("requency") + machine.screenshot("screen") + ''; +}) |