lol

dvdisaster: run tests & build in parallel

It seems like a good idea to test back-up software...

+24 -4
+24 -4
pkgs/tools/cd-dvd/dvdisaster/default.nix
··· 33 33 ] ++ stdenv.lib.optional (builtins.elem stdenv.system 34 34 stdenv.lib.platforms.x86_64) "--with-sse2=yes"; 35 35 36 - buildInputs = [ 37 - pkgconfig which gettext intltool 38 - glib gtk2 39 - ]; 36 + enableParallelBuilding = true; 37 + 38 + doCheck = true; 39 + checkPhase = '' 40 + pushd regtest 41 + 42 + mkdir -p "$TMP"/{log,regtest} 43 + substituteInPlace common.bash \ 44 + --replace /dev/shm "$TMP/log" \ 45 + --replace /var/tmp "$TMP" 46 + 47 + for test in *.bash; do 48 + case "$test" in 49 + common.bash) 50 + echo "Skipping $test" 51 + continue ;; 52 + *) 53 + echo "Running $test" 54 + ./"$test" 55 + esac 56 + done 57 + 58 + popd 59 + ''; 40 60 41 61 postInstall = '' 42 62 mkdir -pv $out/share/applications