aboutsummaryrefslogtreecommitdiff
path: root/tests/ca
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2021-06-15 12:11:31 +0200
committerregnat <rg@regnat.ovh>2021-06-15 12:11:31 +0200
commita3ce88725b44a30184cbe8706fc3a53a8610cc47 (patch)
tree4ab331bb27e6f8540eefdc85498110ec94fbbb8b /tests/ca
parent96d7170e12c75acf363bf7a5a081a86b3c384384 (diff)
Add a test for the gc with CA derivations
Also add a small architecture to easily run CA-enabled tests
Diffstat (limited to 'tests/ca')
-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