aboutsummaryrefslogtreecommitdiff
path: root/tests/ca
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-06-23 10:33:25 +0200
committerGitHub <noreply@github.com>2021-06-23 10:33:25 +0200
commit4a5aa1dbf625af795b19badd66c0a0891c9d5b49 (patch)
tree0750ed484406862630c10a64fdc15bf7d93bb230 /tests/ca
parent2ab7c821f310a5b2ccabfe8da3212882825d8a00 (diff)
parenta22755721b51949dbf03bc1eb156d6f37dc10bac (diff)
Merge pull request #4838 from NixOS/ca/recursively-substitute-realisations
Recursively substitute the realisations
Diffstat (limited to 'tests/ca')
-rw-r--r--tests/ca/substitute.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/ca/substitute.sh b/tests/ca/substitute.sh
index dfc4ea68e..c80feaacf 100644
--- a/tests/ca/substitute.sh
+++ b/tests/ca/substitute.sh
@@ -17,11 +17,15 @@ buildDrvs () {
# Populate the remote cache
clearStore
-buildDrvs --post-build-hook ../push-to-store.sh
+nix copy --to $REMOTE_STORE --file ./content-addressed.nix
# Restart the build on an empty store, ensuring that we don't build
clearStore
-buildDrvs --substitute --substituters $REMOTE_STORE --no-require-sigs -j0
+buildDrvs --substitute --substituters $REMOTE_STORE --no-require-sigs -j0 transitivelyDependentCA
+# Check that the thing we’ve just substituted has its realisation stored
+nix realisation info --file ./content-addressed.nix transitivelyDependentCA
+# Check that its dependencies have it too
+nix realisation info --file ./content-addressed.nix dependentCA rootCA
# Same thing, but
# 1. With non-ca derivations