tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nixosTests.domination: init
Francesco Gazzetta
4 years ago
df99f232
df177cf3
+32
3 changed files
expand all
collapse all
unified
split
nixos
tests
all-tests.nix
domination.nix
pkgs
games
domination
default.nix
+1
nixos/tests/all-tests.nix
···
109
109
docker-tools-overlay = handleTestOn ["x86_64-linux"] ./docker-tools-overlay.nix {};
110
110
documize = handleTest ./documize.nix {};
111
111
dokuwiki = handleTest ./dokuwiki.nix {};
112
112
+
domination = handleTest ./domination.nix {};
112
113
dovecot = handleTest ./dovecot.nix {};
113
114
ec2-config = (handleTestOn ["x86_64-linux"] ./ec2.nix {}).boot-ec2-config or {};
114
115
ec2-nixops = (handleTestOn ["x86_64-linux"] ./ec2.nix {}).boot-ec2-nixops or {};
+26
nixos/tests/domination.nix
···
1
1
+
import ./make-test-python.nix ({ pkgs, ... }: {
2
2
+
name = "domination";
3
3
+
meta = with pkgs.lib.maintainers; {
4
4
+
maintainers = [ fgaz ];
5
5
+
};
6
6
+
7
7
+
machine = { config, pkgs, ... }: {
8
8
+
imports = [
9
9
+
./common/x11.nix
10
10
+
];
11
11
+
12
12
+
services.xserver.enable = true;
13
13
+
environment.systemPackages = [ pkgs.domination ];
14
14
+
};
15
15
+
16
16
+
enableOCR = true;
17
17
+
18
18
+
testScript =
19
19
+
''
20
20
+
machine.wait_for_x()
21
21
+
machine.execute("domination >&2 &")
22
22
+
machine.wait_for_window("Menu")
23
23
+
machine.wait_for_text("New Game")
24
24
+
machine.screenshot("screen")
25
25
+
'';
26
26
+
})
+5
pkgs/games/domination/default.nix
···
6
6
, ant
7
7
, makeWrapper
8
8
, makeDesktopItem
9
9
+
, nixosTests
9
10
}:
10
11
11
12
let
···
78
79
"$out/share/applications/Domination Map Editor.desktop"
79
80
install -Dm644 build/game/resources/icon.png $out/share/pixmaps/domination.png
80
81
'';
82
82
+
83
83
+
passthru.tests = {
84
84
+
domination-starts = nixosTests.domination;
85
85
+
};
81
86
82
87
meta = with lib; {
83
88
homepage = "http://domination.sourceforge.net/";