aboutsummaryrefslogtreecommitdiff
path: root/tests/ca/gc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ca/gc.sh')
-rwxr-xr-xtests/ca/gc.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ca/gc.sh b/tests/ca/gc.sh
new file mode 100755
index 000000000..e4f9857d6
--- /dev/null
+++ b/tests/ca/gc.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+# Ensure that garbage collection works properly with ca derivations
+
+source common.sh
+
+sed -i 's/experimental-features .*/& ca-derivations ca-references/' "$NIX_CONF_DIR"/nix.conf
+
+export NIX_TESTS_CA_BY_DEFAULT=1
+
+cd ..
+source gc.sh