aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-12-20 19:55:21 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-12-23 22:42:06 +0000
commit29bd63e9907cabc5643aaa3f570b9ff5b2d88268 (patch)
tree7c4ccd5a4ecbe0ddeb9e927307417f58372f7bc1 /tests
parenta93916b1905cd7b968e92cd94a3e4a595bff2e0f (diff)
Test nix-instantiate with binary cache store
Trying to make sure it work with obscurers stores.
Diffstat (limited to 'tests')
-rw-r--r--tests/binary-cache.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/binary-cache.sh b/tests/binary-cache.sh
index 92ed36225..8f1c6f14d 100644
--- a/tests/binary-cache.sh
+++ b/tests/binary-cache.sh
@@ -1,15 +1,20 @@
source common.sh
+# We can produce drvs directly into the binary cache
clearStore
-clearCache
+clearCacheCache
+nix-instantiate --store "file://$cacheDir" dependencies.nix
# Create the binary cache.
+clearStore
+clearCache
outPath=$(nix-build dependencies.nix --no-out-link)
nix copy --to file://$cacheDir $outPath
-basicTests() {
+basicDownloadTests() {
+ # No uploading tests bcause upload with force HTTP doesn't work.
# By default, a binary cache doesn't support "nix-env -qas", but does
# support installation.
@@ -44,12 +49,12 @@ basicTests() {
# Test LocalBinaryCacheStore.
-basicTests
+basicDownloadTests
# Test HttpBinaryCacheStore.
export _NIX_FORCE_HTTP=1
-basicTests
+basicDownloadTests
# Test whether Nix notices if the NAR doesn't match the hash in the NAR info.