at 25.11-pre 738 B view raw
1import ./make-test-python.nix ( 2 { pkgs, ... }: 3 { 4 name = "ft2-clone"; 5 meta = with pkgs.lib.maintainers; { 6 maintainers = [ fgaz ]; 7 }; 8 9 nodes.machine = 10 { pkgs, ... }: 11 { 12 imports = [ 13 ./common/x11.nix 14 ]; 15 environment.systemPackages = [ pkgs.ft2-clone ]; 16 }; 17 18 enableOCR = true; 19 20 testScript = '' 21 machine.wait_for_x() 22 # Add a dummy sound card, or the program won't start 23 machine.execute("modprobe snd-dummy") 24 25 machine.execute("ft2-clone >&2 &") 26 27 machine.wait_for_window(r"Fasttracker") 28 machine.sleep(5) 29 machine.wait_for_text(r"(Songlen|Repstart|Time|About|Nibbles|Help)") 30 machine.screenshot("screen") 31 ''; 32 } 33)