mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 01:24:47 +00:00
dvdisaster: run tests & build in parallel
It seems like a good idea to test back-up software...
This commit is contained in:
parent
d4406237a9
commit
5d03506df7
@ -33,10 +33,30 @@ stdenv.mkDerivation rec {
|
|||||||
] ++ stdenv.lib.optional (builtins.elem stdenv.system
|
] ++ stdenv.lib.optional (builtins.elem stdenv.system
|
||||||
stdenv.lib.platforms.x86_64) "--with-sse2=yes";
|
stdenv.lib.platforms.x86_64) "--with-sse2=yes";
|
||||||
|
|
||||||
buildInputs = [
|
enableParallelBuilding = true;
|
||||||
pkgconfig which gettext intltool
|
|
||||||
glib gtk2
|
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 = ''
|
postInstall = ''
|
||||||
mkdir -pv $out/share/applications
|
mkdir -pv $out/share/applications
|
||||||
|
Loading…
Reference in New Issue
Block a user