2021-11-13 23:00:20 +01:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "domination";
|
|
|
|
meta = with pkgs.lib.maintainers; {
|
|
|
|
maintainers = [ fgaz ];
|
|
|
|
};
|
|
|
|
|
2022-03-21 00:15:30 +01:00
|
|
|
nodes.machine = { config, pkgs, ... }: {
|
2021-11-13 23:00:20 +01:00
|
|
|
imports = [
|
|
|
|
./common/x11.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
services.xserver.enable = true;
|
|
|
|
environment.systemPackages = [ pkgs.domination ];
|
|
|
|
};
|
|
|
|
|
|
|
|
enableOCR = true;
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
machine.wait_for_x()
|
|
|
|
machine.execute("domination >&2 &")
|
|
|
|
machine.wait_for_window("Menu")
|
2022-10-12 09:32:06 +02:00
|
|
|
machine.wait_for_text(r"(New Game|Start Server|Load Game|Help Manual|Join Game|About|Play Online)")
|
2021-11-13 23:00:20 +01:00
|
|
|
machine.screenshot("screen")
|
|
|
|
'';
|
|
|
|
})
|