diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-03-31 13:03:50 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-03-31 13:03:50 +0000 |
commit | 1f9740e01c4da98c1a49641f2313729798fafcf3 (patch) | |
tree | bb93942c8c3e0daf609020aec8c1c0dc6e26fee8 /pkgs/top-level/make-tarball.nix | |
parent | acca11b49c04ecc05e6eb279357b5d0808767f40 (diff) | |
download | nixpkgs-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.nix | 6 |
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 \ |