about summary refs log tree commit diff
path: root/tests/signing.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-11-14T17·44+0100
committerEelco Dolstra <edolstra@gmail.com>2017-11-14T17·44+0100
commitec5b04862ba48e6d7e61c8bf730ae37d48b6f70a (patch)
treeb904eb55d71ee13ebdee6cab728fae69bd474b79 /tests/signing.sh
parentd6dbda7004fda4af1fc89c5c947b4d1595a8c436 (diff)
nix sign-paths: Support binary caches
Diffstat (limited to 'tests/signing.sh')
-rw-r--r--tests/signing.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/signing.sh b/tests/signing.sh
index c3638012e1..bef27ac7a5 100644
--- a/tests/signing.sh
+++ b/tests/signing.sh
@@ -60,3 +60,9 @@ info=$(nix path-info --store file://$cacheDir --json $outPath2)
 (! [[ $info =~ '"ultimate":true' ]])
 [[ $info =~ 'cache1.example.org' ]]
 (! [[ $info =~ 'cache2.example.org' ]])
+
+# Verify that adding a signature to a path in a binary cache works.
+nix sign-paths --store file://$cacheDir --key-file $TEST_ROOT/sk2 $outPath2
+info=$(nix path-info --store file://$cacheDir --json $outPath2)
+[[ $info =~ 'cache1.example.org' ]]
+[[ $info =~ 'cache2.example.org' ]]