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