about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2018-09-26T02·18-0400
committerWill Fancher <elvishjerricco@gmail.com>2018-09-26T02·18-0400
commitb7091ce41e0073b147678f05b9a620b9bb2903c1 (patch)
tree4114592c9f2d80c567e4c208d5c7077659703f76 /tests
parent0ae8d4033d0b140b98e45c57e25b23d1970d356c (diff)
Add a test for signed content-addressed paths
Diffstat (limited to 'tests')
-rw-r--r--tests/signing.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/signing.sh b/tests/signing.sh
index 46929639199d..9e29e3fbf063 100644
--- a/tests/signing.sh
+++ b/tests/signing.sh
@@ -62,6 +62,10 @@ outPathCA=$(IMPURE_VAR1=foo IMPURE_VAR2=bar nix-build ./fixed.nix -A good.0 --no
 nix verify $outPathCA
 nix verify $outPathCA --sigs-needed 1000
 
+# Check that signing a content-addressed path doesn't overflow validSigs
+nix sign-paths --key-file $TEST_ROOT/sk1 $outPathCA
+nix verify -r $outPathCA --sigs-needed 1000 --trusted-public-keys $pk1
+
 # Copy to a binary cache.
 nix copy --to file://$cacheDir $outPath2