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