git.iko.soy/typeable/nixpkgs
on master help sign in
pharo-launcher: Add test case & myself as maintainer
commit4736c19c657012b6f6ecd5567fa21c57e2977c92 authorLuke Gorrie <luke@snabb.co> dateMon 3 Apr 2017, 14:26 (10 years ago) parenta775713
1 file changed+14−1
pkgs/development/pharo/launcher/default.nix+14−1
pkgs/development/pharo/launcher/default.nix+14−1
@@ -43,6 +43,19 @@ stdenv.mkDerivation rec {
4343 chmod +x $prefix/bin/${executable-name}
4444 '';
4545
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+
4659 meta = {
4760 description = "Launcher for Pharo distributions";
4861 longDescription = ''
@@ -65,7 +78,7 @@ stdenv.mkDerivation rec {
6578 '';
6679 homepage = http://pharo.org;
6780 license = stdenv.lib.licenses.mit;
68− maintainers = [ ];
81+ maintainers = [ stdenv.lib.maintainers.lukego ];
6982 platforms = pharo-vm.meta.platforms;
7083 };
7184}