1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 02:43:54 +02:00

tests/binary-cache.sh: Improve incomplete closure test

Issue #3373.
This commit is contained in:
Eelco Dolstra 2020-05-12 13:49:55 +02:00
parent 5bdb67c843
commit 5722f9690c
11 changed files with 42 additions and 23 deletions

View file

@ -11,7 +11,7 @@ checkRef() {
outPath=$(nix-build ./export-graph.nix -A 'foo."bar.runtimeGraph"' -o $TEST_ROOT/result)
test $(nix-store -q --references $TEST_ROOT/result | wc -l) = 2 || fail "bad nr of references"
test $(nix-store -q --references $TEST_ROOT/result | wc -l) = 3 || fail "bad nr of references"
checkRef input-2
for i in $(cat $outPath); do checkRef $i; done