about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-12-03T20·02+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-12-03T20·02+0100
commit21c2d8d102add45b8eda61c084aa072f8861a0ff (patch)
tree8470233a119d3722e1488bc0cd8c11daf2f9c3f3 /tests
parentd62fc71b851295b4c5692ec5fa362a06172e66ae (diff)
Test the ‘--prebuilt-only’ flag
Diffstat (limited to 'tests')
-rw-r--r--tests/binary-cache.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/binary-cache.sh b/tests/binary-cache.sh
index ac23fa3f79..813e85cbf9 100644
--- a/tests/binary-cache.sh
+++ b/tests/binary-cache.sh
@@ -29,6 +29,9 @@ echo "WantMassQuery: 1" >> $cacheDir/nix-cache-info
 
 nix-env --option binary-caches "file://$cacheDir" -f dependencies.nix -qas \* | grep -- "--S"
 
+x=$(nix-env -f dependencies.nix -qas \* --prebuilt-only)
+[ -z "$x" ]
+
 nix-store --option binary-caches "file://$cacheDir" -r $outPath
 
 nix-store --check-validity $outPath