pharo-launcher: Add test case & myself as maintainer
This commit is contained in:
parent
a77571399d
commit
4736c19c65
@ -43,6 +43,19 @@ stdenv.mkDerivation rec {
|
|||||||
chmod +x $prefix/bin/${executable-name}
|
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 = {
|
meta = {
|
||||||
description = "Launcher for Pharo distributions";
|
description = "Launcher for Pharo distributions";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
@ -65,7 +78,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
homepage = http://pharo.org;
|
homepage = http://pharo.org;
|
||||||
license = stdenv.lib.licenses.mit;
|
license = stdenv.lib.licenses.mit;
|
||||||
maintainers = [ ];
|
maintainers = [ stdenv.lib.maintainers.lukego ];
|
||||||
platforms = pharo-vm.meta.platforms;
|
platforms = pharo-vm.meta.platforms;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user