diff options
author | regnat <rg@regnat.ovh> | 2020-11-09 16:04:18 +0100 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-03-01 11:08:01 +0100 |
commit | 259d6778efd865ccd3b5fbf4f3a29002a7d58d93 (patch) | |
tree | 1829c735f47b7148113aa6096118c41d63c9a0c5 /tests/nix-copy-content-addressed.sh | |
parent | 73b3e6cd46cf8f10b4c35043d7c0708b22ffebd6 (diff) |
Move the CA tests to a sub-directory
Requires a slight update to the test infra to work properly, but
having the possibility to group tests that way makes the whole thing
quite cleaner imho
Diffstat (limited to 'tests/nix-copy-content-addressed.sh')
-rwxr-xr-x | tests/nix-copy-content-addressed.sh | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/nix-copy-content-addressed.sh b/tests/nix-copy-content-addressed.sh deleted file mode 100755 index 2e0dea2d2..000000000 --- a/tests/nix-copy-content-addressed.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -source common.sh - -# Globally enable the ca derivations experimental flag -sed -i 's/experimental-features = .*/& ca-derivations ca-references/' "$NIX_CONF_DIR/nix.conf" - -export REMOTE_STORE_DIR="$TEST_ROOT/remote_store" -export REMOTE_STORE="file://$REMOTE_STORE_DIR" - -ensureCorrectlyCopied () { - attrPath="$1" - nix build --store "$REMOTE_STORE" --file ./content-addressed.nix "$attrPath" -} - -testOneCopy () { - clearStore - rm -rf "$REMOTE_STORE_DIR" - - attrPath="$1" - nix copy --to $REMOTE_STORE "$attrPath" --file ./content-addressed.nix - - ensureCorrectlyCopied "$attrPath" - - # Ensure that we can copy back what we put in the store - clearStore - nix copy --from $REMOTE_STORE \ - --file ./content-addressed.nix "$attrPath" \ - --no-check-sigs -} - -for attrPath in rootCA dependentCA transitivelyDependentCA dependentNonCA dependentFixedOutput; do - testOneCopy "$attrPath" -done |