diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/guix-authenticate.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/guix-authenticate.sh b/tests/guix-authenticate.sh index 0de6da18784..ddd39d09c44 100644 --- a/tests/guix-authenticate.sh +++ b/tests/guix-authenticate.sh | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # GNU Guix --- Functional package management for GNU | 1 | # GNU Guix --- Functional package management for GNU |
| 2 | # Copyright © 2013, 2014, 2020 Ludovic Courtès <ludo@gnu.org> | 2 | # Copyright © 2013, 2014, 2020, 2025 Ludovic Courtès <ludo@gnu.org> |
| 3 | # | 3 | # |
| 4 | # This file is part of GNU Guix. | 4 | # This file is part of GNU Guix. |
| 5 | # | 5 | # |
| @@ -85,3 +85,8 @@ sed -i "$sig" -e's/^0 //g' | |||
| 85 | echo "verify $(cat $sig)" | guix authenticate | 85 | echo "verify $(cat $sig)" | guix authenticate |
| 86 | hash2="$(echo "verify $(cat $sig)" | guix authenticate | cut -f2 -d ' ')" | 86 | hash2="$(echo "verify $(cat $sig)" | guix authenticate | cut -f2 -d ' ')" |
| 87 | test "$(echo $hash2 | cut -d : -f 2)" = "$hash" | 87 | test "$(echo $hash2 | cut -d : -f 2)" = "$hash" |
| 88 | |||
| 89 | # Make sure an error is properly reported for unreadable key pairs, with exit | ||
| 90 | # code zero (the process would keep running commands on standard input). | ||
| 91 | echo "sign 9:/dev/null $hash_len:$hash" | guix authenticate | ||
| 92 | test $(echo "sign 9:/dev/null $hash_len:$hash" | guix authenticate | cut -f1 -d ' ') = 500 | ||
