From ec5b04862ba48e6d7e61c8bf730ae37d48b6f70a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 14 Nov 2017 18:44:05 +0100 Subject: nix sign-paths: Support binary caches --- tests/signing.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/signing.sh') 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' ]] -- cgit 1.4.1