mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +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:
parent
6a0a2d5593
commit
80faa2f98a
7 changed files with 100 additions and 56 deletions
|
@ -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"
|
||||
|
|
|
@ -4,12 +4,12 @@ echo "store expr is $storeExpr"
|
|||
|
||||
for i in 1 2 3 4 5; do
|
||||
echo "WORKER $i"
|
||||
$TOP/src/nix-store/nix-store -rvvvvvB "$storeExpr" &
|
||||
$TOP/src/nix-store/nix-store -rvv "$storeExpr" &
|
||||
done
|
||||
|
||||
sleep 5
|
||||
|
||||
outPath=$($TOP/src/nix-store/nix-store -qnfvvvvv "$storeExpr")
|
||||
outPath=$($TOP/src/nix-store/nix-store -qvvf "$storeExpr")
|
||||
|
||||
echo "output path is $outPath"
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ storeExpr=$($TOP/src/nix-instantiate/nix-instantiate parallel.nix)
|
|||
|
||||
echo "store expr is $storeExpr"
|
||||
|
||||
outPath=$($TOP/src/nix-store/nix-store -qnfvvvv -j10000 "$storeExpr")
|
||||
outPath=$($TOP/src/nix-store/nix-store -qfvv -j10000 "$storeExpr")
|
||||
|
||||
echo "output path is $outPath"
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ storeExpr=$($TOP/src/nix-instantiate/nix-instantiate simple.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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue