about summary refs log tree commit diff
path: root/tests/signing.sh
diff options
context:
space:
mode:
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 c3638012e109..bef27ac7a58e 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' ]]