2022-11-26 07:59:13 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} :
|
|
|
|
{
|
2023-10-06 10:36:48 +00:00
|
|
|
name = "sgt-puzzles";
|
2022-11-26 07:59:13 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
|
|
|
maintainers = [ tomfitzhenry ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes.machine = { ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./common/x11.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
services.xserver.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
2023-10-06 10:36:48 +00:00
|
|
|
sgt-puzzles
|
2022-11-26 07:59:13 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
enableOCR = true;
|
|
|
|
|
|
|
|
testScript = { nodes, ... }:
|
|
|
|
''
|
|
|
|
start_all()
|
|
|
|
machine.wait_for_x()
|
|
|
|
|
|
|
|
machine.execute("mines >&2 &")
|
|
|
|
|
|
|
|
machine.wait_for_window("Mines")
|
|
|
|
machine.wait_for_text("Marked")
|
|
|
|
machine.screenshot("mines")
|
|
|
|
'';
|
|
|
|
})
|