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
leaps = handleTest ./leaps.nix {};
231
libinput = handleTest ./libinput.nix {};
232
libreddit = handleTest ./libreddit.nix {};
0
233
libreswan = handleTest ./libreswan.nix {};
234
lidarr = handleTest ./lidarr.nix {};
235
lightdm = handleTest ./lightdm.nix {};
···
230
leaps = handleTest ./leaps.nix {};
231
libinput = handleTest ./libinput.nix {};
232
libreddit = handleTest ./libreddit.nix {};
233
+
libresprite = handleTest ./libresprite.nix {};
234
libreswan = handleTest ./libreswan.nix {};
235
lidarr = handleTest ./lidarr.nix {};
236
lightdm = handleTest ./lightdm.nix {};
+30
nixos/tests/libresprite.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
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
, AppKit
23
, Cocoa
24
, Foundation
0
0
25
}:
26
27
stdenv.mkDerivation rec {
···
78
install -Dm644 "$src"/doc"$size".png "$dst"/mimetypes/aseprite.png
79
done
80
'';
0
0
0
0
81
82
meta = with lib; {
83
homepage = "https://libresprite.github.io/";
···
22
, AppKit
23
, Cocoa
24
, Foundation
25
+
26
+
, nixosTests
27
}:
28
29
stdenv.mkDerivation rec {
···
80
install -Dm644 "$src"/doc"$size".png "$dst"/mimetypes/aseprite.png
81
done
82
'';
83
+
84
+
passthru.tests = {
85
+
libresprite-can-open-png = nixosTests.libresprite;
86
+
};
87
88
meta = with lib; {
89
homepage = "https://libresprite.github.io/";