git.iko.soy/typeable/nixpkgs
on master help sign in
pharo-launcher: Add test case & myself as maintainer
4736c19Luke Gorrie
pkgs/development/pharo/launcher/default.nix+14−1
@@ -43,6 +43,19 @@ stdenv.mkDerivation rec {
43 chmod +x $prefix/bin/${executable-name}
43 chmod +x $prefix/bin/${executable-name}
44 '';
44 '';
45
45
46+ doCheck = true;
47+
48+ checkPhase = ''
49+ # Launcher should be able to run for a few seconds without crashing.
50+ (set +e
51+ export HOME=. # Pharo will try to create files here
52+ secs=5
53+ echo -n "Running headless Pharo for $secs seconds to check for a crash... "
54+ timeout $secs \
55+ ${pharo-vm}/bin/pharo-vm-nox PharoLauncher.image --no-quit eval 'true'
56+ test "$?" == 124 && echo "ok")
57+ '';
58+
46 meta = {
59 meta = {
47 description = "Launcher for Pharo distributions";
60 description = "Launcher for Pharo distributions";
48 longDescription = ''
61 longDescription = ''
@@ -65,7 +78,7 @@ stdenv.mkDerivation rec {
65 '';
78 '';
66 homepage = http://pharo.org;
79 homepage = http://pharo.org;
67 license = stdenv.lib.licenses.mit;
80 license = stdenv.lib.licenses.mit;
68− maintainers = [ ];
81+ maintainers = [ stdenv.lib.maintainers.lukego ];
69 platforms = pharo-vm.meta.platforms;
82 platforms = pharo-vm.meta.platforms;
70 };
83 };
71}
84}