diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-11-14 18:44:05 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-11-14 18:44:05 +0100 |
commit | ec5b04862ba48e6d7e61c8bf730ae37d48b6f70a (patch) | |
tree | b904eb55d71ee13ebdee6cab728fae69bd474b79 /tests/signing.sh | |
parent | d6dbda7004fda4af1fc89c5c947b4d1595a8c436 (diff) |
nix sign-paths: Support binary caches
Diffstat (limited to 'tests/signing.sh')
-rw-r--r-- | tests/signing.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/signing.sh b/tests/signing.sh index c3638012e..bef27ac7a 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' ]] |