Skip to content

Commit

Permalink
Add a test for copying CA derivations outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
thufschmitt committed Nov 6, 2020
1 parent 94ba011 commit 2c9f509
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/local.mk
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ nix_tests = \
recursive.sh \
describe-stores.sh \
flakes.sh \
content-addressed.sh
content-addressed.sh \
nix-copy-content-addressed.sh
# parallel.sh
# build-remote-content-addressed-fixed.sh \
Expand Down
21 changes: 21 additions & 0 deletions tests/nix-copy-content-addressed.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
source common.sh

clearStore
clearCache

commonArgs=( \
--experimental-features 'nix-command flakes ca-derivations ca-references' \
--file ./content-addressed.nix \
-v
)


# Fill the remote cache
nix copy --to file://$cacheDir "${commonArgs[@]}"
clearStore

# Fetch the otput from the cache
nix copy --from file://$cacheDir --no-require-sigs "${commonArgs[@]}"

# Ensure that everything is locally present
nix build "${commonArgs[@]}" -j0 --no-link

0 comments on commit 2c9f509

Please sign in to comment.