git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #24597 from lukego/pharo-launcher-test

pharo-launcher: Add test case & myself as maintainer

commit94d1145ece5075bfe7b23782e20ef68a23d9872e authorDomen Kožar <domen@enlambda.com> dateTue 4 Apr 2017, 08:08 (10 years ago) parent81e1d7e4736c19
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}