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