summary refs log tree commit diff
path: root/pkgs/tools/compression/lz4
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-01-20 07:31:00 +0100
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-01-20 07:31:00 +0100
commitd14ba81572b0fb4372358b68dfba1aea34055556 (patch)
treea13bde21dc2f1925363b0f38f7e32d9d78c39026 /pkgs/tools/compression/lz4
parent0fd09d11653a529817b6bcdeb60d1b11dcba137d (diff)
lz4: run tests
Data safety > valgrind.
Diffstat (limited to 'pkgs/tools/compression/lz4')
-rw-r--r--pkgs/tools/compression/lz4/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/tools/compression/lz4/default.nix b/pkgs/tools/compression/lz4/default.nix
index 6f7cf5b987a42..c89909503d5d8 100644
--- a/pkgs/tools/compression/lz4/default.nix
+++ b/pkgs/tools/compression/lz4/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl }:
+{ stdenv, fetchurl, valgrind }:
 
 stdenv.mkDerivation rec {
   # The r127 source still calls itself r126 everywhere, but I'm not going to
@@ -11,10 +11,16 @@ stdenv.mkDerivation rec {
     sha256 = "0hvbbr07j4hfix4dn4xw4fsmkr5s02bj596fn0i15d1i49xby2aj";
   };
 
+  # valgrind is required only by `make test`
+  buildInputs = [ valgrind ];
+
   enableParallelBuilding = true;
 
   makeFlags = "PREFIX=$(out)";
 
+  doCheck = true;
+  checkTarget = "test";
+
   meta = with stdenv.lib; {
     description = "Extremely fast compression algorithm";
     longDescription = ''