diff options
author | regnat <rg@regnat.ovh> | 2020-12-08 18:11:33 +0100 |
---|---|---|
committer | Théophane Hufschmitt <regnat@users.noreply.github.com> | 2021-02-19 15:48:31 +0100 |
commit | be1b5c4e59ca1c3504a44e2058807f7207432846 (patch) | |
tree | f70033dbf9bb9317be895cd76430739135f98bb8 | |
parent | 263f6dbd1cef6eb9560737f6daf963f8968a65d8 (diff) |
Test the garbage collection of CA derivations
Simple test to ensure that `nix-build && nix-collect-garbage &&
nix-build -j0` works as it should
-rw-r--r-- | tests/content-addressed.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/content-addressed.sh b/tests/content-addressed.sh index e8ac88609..7e32e1f28 100644 --- a/tests/content-addressed.sh +++ b/tests/content-addressed.sh @@ -48,6 +48,10 @@ testCutoff () { testGC () { nix-instantiate --experimental-features ca-derivations ./content-addressed.nix -A rootCA --arg seed 5 nix-collect-garbage --experimental-features ca-derivations --option keep-derivations true + clearStore + buildAttr rootCA 1 --out-link $TEST_ROOT/rootCA + nix-collect-garbage --experimental-features ca-derivations + buildAttr rootCA 1 -j0 } testNixCommand () { |