Test the garbage collection of CA derivations

Simple test to ensure that `nix-build && nix-collect-garbage &&
nix-build -j0` works as it should
This commit is contained in:
regnat 2020-12-08 18:11:33 +01:00 committed by Théophane Hufschmitt
parent 263f6dbd1c
commit be1b5c4e59

View File

@ -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 () {