mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* clearsig.test, conventional-mdc.test, conventional.test, defs.inc,
encrypt-dsa.test, encrypt.test, genkey1024.test, plain-1.asc, plain-1-pgp.asc, plain-2.asc, plain-3.asc, pubring.asc, secring.asc, sigs.test: Rework tests to work properly with a gpg binary that doesn't have all ciphers and all pk algos. Basically, we test for the ciphers we have, only test signing with non-160-bit hashes with RSA (we test all hashes as hashes). Test all key lengths of AES.
This commit is contained in:
parent
2a785147be
commit
e7abe7e909
15 changed files with 1041 additions and 873 deletions
|
@ -9,6 +9,8 @@ usrname1="one"
|
|||
usrpass1="def"
|
||||
usrname2="two"
|
||||
usrpass2=""
|
||||
usrname3="three"
|
||||
usrpass3=""
|
||||
|
||||
|
||||
dsa_usrname1="pgp5"
|
||||
|
@ -80,6 +82,23 @@ echo_n () {
|
|||
# cleanup_files="$cleanup_files $*"
|
||||
#}
|
||||
|
||||
have_pubkey_algo () {
|
||||
if ../g10/gpg --homedir . --version | grep "Pubkey:.*$1" >/dev/null
|
||||
then
|
||||
true
|
||||
else
|
||||
false
|
||||
fi
|
||||
}
|
||||
|
||||
have_cipher_algo () {
|
||||
if ../g10/gpg --homedir . --version | grep "Cipher:.*$1" >/dev/null
|
||||
then
|
||||
true
|
||||
else
|
||||
false
|
||||
fi
|
||||
}
|
||||
|
||||
have_hash_algo () {
|
||||
if ../g10/gpg --homedir . --version | grep "Hash:.*$1" >/dev/null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue