nixosTests.aseprite: init

+37
+1
nixos/tests/all-tests.nix
··· 230 230 leaps = handleTest ./leaps.nix {}; 231 231 libinput = handleTest ./libinput.nix {}; 232 232 libreddit = handleTest ./libreddit.nix {}; 233 + libresprite = handleTest ./libresprite.nix {}; 233 234 libreswan = handleTest ./libreswan.nix {}; 234 235 lidarr = handleTest ./lidarr.nix {}; 235 236 lightdm = handleTest ./lightdm.nix {};
+30
nixos/tests/libresprite.nix
··· 1 + import ./make-test-python.nix ({ pkgs, ... }: { 2 + name = "libresprite"; 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 = [ 14 + pkgs.imagemagick 15 + pkgs.libresprite 16 + ]; 17 + }; 18 + 19 + enableOCR = true; 20 + 21 + testScript = 22 + '' 23 + machine.wait_for_x() 24 + machine.succeed("convert -font DejaVu-Sans +antialias label:'IT WORKS' image.png") 25 + machine.execute("libresprite image.png >&2 &") 26 + machine.wait_for_window("LibreSprite v${pkgs.libresprite.version}") 27 + machine.wait_for_text("IT WORKS") 28 + machine.screenshot("screen") 29 + ''; 30 + })
+6
pkgs/applications/editors/libresprite/default.nix
··· 22 22 , AppKit 23 23 , Cocoa 24 24 , Foundation 25 + 26 + , nixosTests 25 27 }: 26 28 27 29 stdenv.mkDerivation rec { ··· 78 80 install -Dm644 "$src"/doc"$size".png "$dst"/mimetypes/aseprite.png 79 81 done 80 82 ''; 83 + 84 + passthru.tests = { 85 + libresprite-can-open-png = nixosTests.libresprite; 86 + }; 81 87 82 88 meta = with lib; { 83 89 homepage = "https://libresprite.github.io/";