aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/pharo
diff options
context:
space:
mode:
authorLuke Gorrie <luke@snabb.co>2017-04-03 14:26:33 +0000
committerLuke Gorrie <luke@snabb.co>2017-04-03 14:26:33 +0000
commit4736c19c657012b6f6ecd5567fa21c57e2977c92 (patch)
tree831779e20058a795d3478a53d8183bd3237c5f0d /pkgs/development/pharo
parenta77571399d71167bf16b4183090a6f7e203d7e0f (diff)
pharo-launcher: Add test case & myself as maintainer
Diffstat (limited to 'pkgs/development/pharo')
-rw-r--r--pkgs/development/pharo/launcher/default.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/development/pharo/launcher/default.nix b/pkgs/development/pharo/launcher/default.nix
index 02004061b83..911680b1eb8 100644
--- a/pkgs/development/pharo/launcher/default.nix
+++ b/pkgs/development/pharo/launcher/default.nix
@@ -43,6 +43,19 @@ stdenv.mkDerivation rec {
chmod +x $prefix/bin/${executable-name}
'';
+ doCheck = true;
+
+ checkPhase = ''
+ # Launcher should be able to run for a few seconds without crashing.
+ (set +e
+ export HOME=. # Pharo will try to create files here
+ secs=5
+ echo -n "Running headless Pharo for $secs seconds to check for a crash... "
+ timeout $secs \
+ ${pharo-vm}/bin/pharo-vm-nox PharoLauncher.image --no-quit eval 'true'
+ test "$?" == 124 && echo "ok")
+ '';
+
meta = {
description = "Launcher for Pharo distributions";
longDescription = ''
@@ -65,7 +78,7 @@ stdenv.mkDerivation rec {
'';
homepage = http://pharo.org;
license = stdenv.lib.licenses.mit;
- maintainers = [ ];
+ maintainers = [ stdenv.lib.maintainers.lukego ];
platforms = pharo-vm.meta.platforms;
};
}