Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
26 lines
626 B
Nix
26 lines
626 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "urn-timer";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ fgaz ];
|
|
};
|
|
|
|
nodes.machine = { config, pkgs, ... }: {
|
|
imports = [
|
|
./common/x11.nix
|
|
];
|
|
|
|
services.xserver.enable = true;
|
|
environment.systemPackages = [ pkgs.urn-timer ];
|
|
};
|
|
|
|
enableOCR = true;
|
|
|
|
testScript =
|
|
''
|
|
machine.wait_for_x()
|
|
machine.execute("urn-gtk ${pkgs.urn-timer.src}/splits_examples/sotn.json >&2 &")
|
|
machine.wait_for_window("urn")
|
|
machine.wait_for_text(r"(Mist|Bat|Reverse|Dracula)")
|
|
machine.screenshot("screen")
|
|
'';
|
|
})
|