mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
tests: Handle disabled algorithms.
* tests/openpgp/mds.test: Skip disabled algorithms. * tests/openpgp/signencrypt-dsa.test: Ditto. * tests/openpgp/sigs-dsa.test: Ditto.
This commit is contained in:
parent
111f082487
commit
ea7f895319
3 changed files with 32 additions and 6 deletions
|
@ -17,7 +17,14 @@ for i in $plain_files $data_files; do
|
|||
cmp $i y || error "$i: mismatch"
|
||||
done
|
||||
|
||||
for da in ripemd160 sha1; do
|
||||
algos="sha1"
|
||||
if have_hash_algo "RIPEMD160"; then
|
||||
algos="ripemd160 $algos"
|
||||
else
|
||||
echo "Hash algorithm RIPEMD160 is not installed (not an error)"
|
||||
fi
|
||||
|
||||
for da in $algos; do
|
||||
for i in $plain_files; do
|
||||
$GPG --digest-algo $da -s -o x --yes -u $dsa_usrname1 $i
|
||||
$GPG -o y --yes x
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue