3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #24597 from lukego/pharo-launcher-test

pharo-launcher: Add test case & myself as maintainer
This commit is contained in:
Domen Kožar 2017-04-04 08:08:48 +02:00 committed by GitHub
commit 94d1145ece

View file

@ -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;
};
}