at 23.11-pre 591 B view raw
1import ./make-test-python.nix ({ pkgs, ...} : 2{ 3 name = "sgtpuzzles"; 4 meta = with pkgs.lib.maintainers; { 5 maintainers = [ tomfitzhenry ]; 6 }; 7 8 nodes.machine = { ... }: 9 10 { 11 imports = [ 12 ./common/x11.nix 13 ]; 14 15 services.xserver.enable = true; 16 environment.systemPackages = with pkgs; [ 17 sgtpuzzles 18 ]; 19 }; 20 21 enableOCR = true; 22 23 testScript = { nodes, ... }: 24 '' 25 start_all() 26 machine.wait_for_x() 27 28 machine.execute("mines >&2 &") 29 30 machine.wait_for_window("Mines") 31 machine.wait_for_text("Marked") 32 machine.screenshot("mines") 33 ''; 34})