git.iko.soy/typeable/nixpkgs
on master help sign in
dvdisaster: run tests & build in parallel

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

commit5d03506df77885e1ac4a18236723d37663cf8709 authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> dateSun 27 Dec 2015, 06:36 (11 years ago) parentd440623
1 file changed+24−4
pkgs/tools/cd-dvd/dvdisaster/default.nix+24−4
pkgs/tools/cd-dvd/dvdisaster/default.nix+24−4
@@ -33,10 +33,30 @@ stdenv.mkDerivation rec {
3333 ] ++ stdenv.lib.optional (builtins.elem stdenv.system
3434 stdenv.lib.platforms.x86_64) "--with-sse2=yes";
3535
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+ '';
4060
4161 postInstall = ''
4262 mkdir -pv $out/share/applications