lol

Merge pull request #202995 from tomfitzhenry/sgtpuzzles-test

nixos/tests/sgtpuzzles: init

authored by

Francesco Gazzetta and committed by
GitHub
0995aea4 41d8fdc6

+38 -1
+1
nixos/tests/all-tests.nix
··· 611 611 searx = handleTest ./searx.nix {}; 612 612 service-runner = handleTest ./service-runner.nix {}; 613 613 sfxr-qt = handleTest ./sfxr-qt.nix {}; 614 + sgtpuzzles = handleTest ./sgtpuzzles.nix {}; 614 615 shadow = handleTest ./shadow.nix {}; 615 616 shadowsocks = handleTest ./shadowsocks {}; 616 617 shattered-pixel-dungeon = handleTest ./shattered-pixel-dungeon.nix {};
+34
nixos/tests/sgtpuzzles.nix
··· 1 + import ./make-test-python.nix ({ pkgs, ...} : 2 + { 3 + name = "sgtpuzzles"; 4 + meta = with pkgs.lib.maintainers; { 5 + maintainers = [ tomfitzhenry ]; 6 + }; 7 + 8 + nodes.machine = { ... }: 9 + 10 + { 11 + imports = [ 12 + ./common/x11.nix 13 + ]; 14 + 15 + services.xserver.enable = true; 16 + environment.systemPackages = with pkgs; [ 17 + sgtpuzzles 18 + ]; 19 + }; 20 + 21 + enableOCR = true; 22 + 23 + testScript = { nodes, ... }: 24 + '' 25 + start_all() 26 + machine.wait_for_x() 27 + 28 + machine.execute("mines >&2 &") 29 + 30 + machine.wait_for_window("Mines") 31 + machine.wait_for_text("Marked") 32 + machine.screenshot("mines") 33 + ''; 34 + })
+3 -1
pkgs/games/sgt-puzzles/default.nix
··· 1 1 { lib, stdenv, fetchurl, desktop-file-utils 2 2 , gtk3, libX11, cmake, imagemagick 3 - , pkg-config, perl, wrapGAppsHook 3 + , pkg-config, perl, wrapGAppsHook, nixosTests 4 4 , isMobile ? false 5 5 }: 6 6 ··· 58 58 59 59 install -Dm644 ${sgt-puzzles-menu} -t $out/etc/xdg/menus/applications-merged/ 60 60 ''; 61 + 62 + passthru.tests.sgtpuzzles = nixosTests.sgtpuzzles; 61 63 62 64 meta = with lib; { 63 65 description = "Simon Tatham's portable puzzle collection";