dvdisaster: run tests & build in parallel

It seems like a good idea to test back-up software...
This commit is contained in:
Tobias Geerinckx-Rice 2015-12-27 06:36:30 +01:00
parent d4406237a9
commit 5d03506df7

View File

@ -33,10 +33,30 @@ stdenv.mkDerivation rec {
] ++ stdenv.lib.optional (builtins.elem stdenv.system
stdenv.lib.platforms.x86_64) "--with-sse2=yes";
buildInputs = [
pkgconfig which gettext intltool
glib gtk2
];
enableParallelBuilding = true;
doCheck = true;
checkPhase = ''
pushd regtest
mkdir -p "$TMP"/{log,regtest}
substituteInPlace common.bash \
--replace /dev/shm "$TMP/log" \
--replace /var/tmp "$TMP"
for test in *.bash; do
case "$test" in
common.bash)
echo "Skipping $test"
continue ;;
*)
echo "Running $test"
./"$test"
esac
done
popd
'';
postInstall = ''
mkdir -pv $out/share/applications