mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
35 lines
591 B
Nix
35 lines
591 B
Nix
import ./make-test-python.nix ({ pkgs, ...} :
|
|
{
|
|
name = "sgtpuzzles";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ tomfitzhenry ];
|
|
};
|
|
|
|
nodes.machine = { ... }:
|
|
|
|
{
|
|
imports = [
|
|
./common/x11.nix
|
|
];
|
|
|
|
services.xserver.enable = true;
|
|
environment.systemPackages = with pkgs; [
|
|
sgtpuzzles
|
|
];
|
|
};
|
|
|
|
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")
|
|
'';
|
|
})
|