1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-12 19:05:08 +02:00

Add a test for the gc with CA derivations

Also add a small architecture to easily run CA-enabled tests
This commit is contained in:
regnat 2021-06-15 12:11:31 +02:00
parent 96d7170e12
commit a3ce88725b
3 changed files with 23 additions and 1 deletions

12
tests/ca/gc.sh Executable file
View file

@ -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