1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/nixos/tests/urn-timer.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
626 B
Nix
Raw Normal View History

2024-02-04 18:59:22 +00:00
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")
'';
})