at master 652 B view raw
1{ pkgs, ... }: 2{ 3 name = "ft2-clone"; 4 meta = with pkgs.lib.maintainers; { 5 maintainers = [ fgaz ]; 6 }; 7 8 nodes.machine = 9 { pkgs, ... }: 10 { 11 imports = [ 12 ./common/x11.nix 13 ]; 14 environment.systemPackages = [ pkgs.ft2-clone ]; 15 }; 16 17 enableOCR = true; 18 19 testScript = '' 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}