about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-12-27 06:36:30 +0100
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-12-27 06:37:00 +0100
commit5d03506df77885e1ac4a18236723d37663cf8709 (patch)
tree035407eaf46d3d9c15f515b2efa01500fd16962c
parentd4406237a9731f1a9f3330f675bf57b8eb58a048 (diff)
downloadnixlib-5d03506df77885e1ac4a18236723d37663cf8709.tar
nixlib-5d03506df77885e1ac4a18236723d37663cf8709.tar.gz
nixlib-5d03506df77885e1ac4a18236723d37663cf8709.tar.bz2
nixlib-5d03506df77885e1ac4a18236723d37663cf8709.tar.lz
nixlib-5d03506df77885e1ac4a18236723d37663cf8709.tar.xz
nixlib-5d03506df77885e1ac4a18236723d37663cf8709.tar.zst
nixlib-5d03506df77885e1ac4a18236723d37663cf8709.zip
dvdisaster: run tests & build in parallel
It seems like a good idea to test back-up software...
-rw-r--r--pkgs/tools/cd-dvd/dvdisaster/default.nix28
1 files changed, 24 insertions, 4 deletions
diff --git a/pkgs/tools/cd-dvd/dvdisaster/default.nix b/pkgs/tools/cd-dvd/dvdisaster/default.nix
index 7d17b8b3282f..a98ce2088bd0 100644
--- a/pkgs/tools/cd-dvd/dvdisaster/default.nix
+++ b/pkgs/tools/cd-dvd/dvdisaster/default.nix
@@ -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