tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nixosTests.aseprite: init
Francesco Gazzetta
4 years ago
f3ece9f2
6ac64dc1
+37
3 changed files
expand all
collapse all
unified
split
nixos
tests
all-tests.nix
libresprite.nix
pkgs
applications
editors
libresprite
default.nix
+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
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
1
+
import ./make-test-python.nix ({ pkgs, ... }: {
2
2
+
name = "libresprite";
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 = [
14
14
+
pkgs.imagemagick
15
15
+
pkgs.libresprite
16
16
+
];
17
17
+
};
18
18
+
19
19
+
enableOCR = true;
20
20
+
21
21
+
testScript =
22
22
+
''
23
23
+
machine.wait_for_x()
24
24
+
machine.succeed("convert -font DejaVu-Sans +antialias label:'IT WORKS' image.png")
25
25
+
machine.execute("libresprite image.png >&2 &")
26
26
+
machine.wait_for_window("LibreSprite v${pkgs.libresprite.version}")
27
27
+
machine.wait_for_text("IT WORKS")
28
28
+
machine.screenshot("screen")
29
29
+
'';
30
30
+
})
+6
pkgs/applications/editors/libresprite/default.nix
···
22
22
, AppKit
23
23
, Cocoa
24
24
, Foundation
25
25
+
26
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
83
+
84
84
+
passthru.tests = {
85
85
+
libresprite-can-open-png = nixosTests.libresprite;
86
86
+
};
81
87
82
88
meta = with lib; {
83
89
homepage = "https://libresprite.github.io/";