1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-09 07:53:55 +02:00

* In nix-store: change --build' back to --realise'. Also brought

back the query flag `--force-realise'.
* Fixed some of the tests.
This commit is contained in:
Eelco Dolstra 2005-01-25 10:55:33 +00:00
parent 6a0a2d5593
commit 80faa2f98a
7 changed files with 100 additions and 56 deletions

View file

@ -2,16 +2,16 @@ storeExpr=$($TOP/src/nix-instantiate/nix-instantiate dependencies.nix)
echo "store expr is $storeExpr"
outPath=$($TOP/src/nix-store/nix-store -bvv "$storeExpr")
outPath=$($TOP/src/nix-store/nix-store -rvv "$storeExpr")
echo "output path is $outPath"
text=$(cat "$outPath"/foobar)
if test "$text" != "FOOBAR"; then exit 1; fi
deps=$($TOP/src/nix-store/nix-store -qnR "$storeExpr")
deps=$($TOP/src/nix-store/nix-store -quR "$storeExpr")
echo "output closures are $deps"
echo "output closure contains $deps"
# The output path should be in the closure.
echo "$deps" | grep -q "$outPath"