1import ./make-test-python.nix (
2 { pkgs, ... }:
3 {
4 name = "sfxr-qt";
5 meta = with pkgs.lib.maintainers; {
6 maintainers = [ fgaz ];
7 };
8
9 machine =
10 { config, pkgs, ... }:
11 {
12 imports = [
13 ./common/x11.nix
14 ];
15
16 services.xserver.enable = true;
17 environment.systemPackages = [ pkgs.sfxr-qt ];
18 };
19
20 enableOCR = true;
21
22 testScript = ''
23 machine.wait_for_x()
24 # Add a dummy sound card, or the program won't start
25 machine.execute("modprobe snd-dummy")
26
27 machine.execute("sfxr-qt >&2 &")
28
29 machine.wait_for_window(r"sfxr")
30 machine.sleep(10)
31 machine.wait_for_text("requency")
32 machine.screenshot("screen")
33 '';
34 }
35)