nixosTests.domination: init

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