summary refs log tree commit diff
path: root/pkgs/top-level/make-tarball.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-03-31 13:03:50 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-03-31 13:03:50 +0000
commit1f9740e01c4da98c1a49641f2313729798fafcf3 (patch)
treebb93942c8c3e0daf609020aec8c1c0dc6e26fee8 /pkgs/top-level/make-tarball.nix
parentacca11b49c04ecc05e6eb279357b5d0808767f40 (diff)
downloadnixpkgs-1f9740e01c4da98c1a49641f2313729798fafcf3.tar
nixpkgs-1f9740e01c4da98c1a49641f2313729798fafcf3.tar.gz
nixpkgs-1f9740e01c4da98c1a49641f2313729798fafcf3.tar.bz2
nixpkgs-1f9740e01c4da98c1a49641f2313729798fafcf3.tar.lz
nixpkgs-1f9740e01c4da98c1a49641f2313729798fafcf3.tar.xz
nixpkgs-1f9740e01c4da98c1a49641f2313729798fafcf3.tar.zst
nixpkgs-1f9740e01c4da98c1a49641f2313729798fafcf3.zip
* Added some regression tests for lib that I wrote a while ago but
  didn't commit.  Also, run the tests when making a Nixpkgs tarball.

svn path=/nixpkgs/trunk/; revision=14802
Diffstat (limited to 'pkgs/top-level/make-tarball.nix')
-rw-r--r--pkgs/top-level/make-tarball.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/top-level/make-tarball.nix b/pkgs/top-level/make-tarball.nix
index d6e3a118d44..11c12378ba8 100644
--- a/pkgs/top-level/make-tarball.nix
+++ b/pkgs/top-level/make-tarball.nix
@@ -39,6 +39,12 @@ releaseTools.makeSourceTarball {
   doCheck = true;
 
   checkPhase = ''
+    # Run the regression tests in `lib'.
+    if test "$(nix-instantiate --eval-only --strict tests.nix)" != "List([])"; then
+        echo "regression tests for `lib' failed"
+        exit 1
+    fi
+  
     # Check that we can fully evaluate build-for-release.nix.
     header "checking pkgs/top-level/build-for-release.nix"
     nix-env --readonly-mode -f pkgs/top-level/build-for-release.nix \