aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-05-22 23:52:29 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-05-22 23:52:29 +0200
commita4ba6e5590285a78e51079be7664a459b2ae7ee4 (patch)
tree947e658c6dee68c459acb818d71e2ca31f3e91e3 /tests
parentf0d6d67af93b63c1da1809dc7630026624c19b14 (diff)
Add a test for the registry GC root
Diffstat (limited to 'tests')
-rw-r--r--tests/flakes.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/flakes.sh b/tests/flakes.sh
index 6c987ad14..977728e43 100644
--- a/tests/flakes.sh
+++ b/tests/flakes.sh
@@ -178,3 +178,8 @@ nix build -o $TEST_ROOT/result --flake-registry $registry $flake3Dir:sth
# Unsupported epochs should be an error.
sed -i $flake3Dir/flake.nix -e s/2019/2030/
nix build -o $TEST_ROOT/result --flake-registry $registry $flake3Dir:sth 2>&1 | grep 'unsupported epoch'
+
+# Test whether registry caching works.
+nix flake list --flake-registry file://$registry | grep -q flake3
+mv $registry $registry.tmp
+nix flake list --flake-registry file://$registry --tarball-ttl 0 | grep -q flake3