summary refs log tree commit diff
diff options
context:
space:
mode:
authorDomen Kožar <domen@enlambda.com>2017-04-04 08:08:48 +0200
committerGitHub <noreply@github.com>2017-04-04 08:08:48 +0200
commit94d1145ece5075bfe7b23782e20ef68a23d9872e (patch)
tree4992b8343551497a2b3b085a59c6b2f06dbff6bc
parent81e1d7eb55e6c91b6094a63fbb4c81bdda4e98af (diff)
parent4736c19c657012b6f6ecd5567fa21c57e2977c92 (diff)
downloadnixpkgs-94d1145ece5075bfe7b23782e20ef68a23d9872e.tar
nixpkgs-94d1145ece5075bfe7b23782e20ef68a23d9872e.tar.gz
nixpkgs-94d1145ece5075bfe7b23782e20ef68a23d9872e.tar.bz2
nixpkgs-94d1145ece5075bfe7b23782e20ef68a23d9872e.tar.lz
nixpkgs-94d1145ece5075bfe7b23782e20ef68a23d9872e.tar.xz
nixpkgs-94d1145ece5075bfe7b23782e20ef68a23d9872e.tar.zst
nixpkgs-94d1145ece5075bfe7b23782e20ef68a23d9872e.zip
Merge pull request #24597 from lukego/pharo-launcher-test
pharo-launcher: Add test case & myself as maintainer
-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;
   };
 }