mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
tests: Integrate --use-keyboxd into the OpenPGP test suite.
* tests/openpgp/all-tests.scm (all-tests): Replace extended-key-format mode with a new keyboxd mode. * tests/openpgp/defs.scm (create-gpghome): Ditto. * tests/openpgp/gpgv.scm: Adjust for keyboxd mode. * tests/openpgp/issue2419.scm: Fix to allow setting a log-file into gpg.conf for debugging. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
25ad3c22d7
commit
b19a60c6f7
4 changed files with 38 additions and 13 deletions
|
@ -21,7 +21,16 @@
|
|||
(load (in-srcdir "tests" "openpgp" "signed-messages.scm"))
|
||||
(setup-legacy-environment)
|
||||
|
||||
(define keyring (if (file-exists? "pubring.kbx") "pubring.kbx" "pubring.gpg"))
|
||||
;; In keyboxd mode we need to export all keys first
|
||||
(if (flag "--use-keyboxd" *args*)
|
||||
(call-check `(,@GPG --quiet --yes
|
||||
--export --yes --batch -o mytrustedkeys.gpg)))
|
||||
|
||||
(define keyring (if (flag "--use-keyboxd" *args*)
|
||||
"mytrustedkeys.gpg"
|
||||
(if (file-exists? "pubring.kbx")
|
||||
"pubring.kbx"
|
||||
"pubring.gpg")))
|
||||
|
||||
;;
|
||||
;; Two simple tests to check that verify fails for bad input data
|
||||
|
@ -66,6 +75,9 @@
|
|||
;; Need to import the ed25519 sample key used for the next two tests.
|
||||
(call-check `(,@gpg --quiet --yes
|
||||
--import ,(in-srcdir "tests" "openpgp" key-file2)))
|
||||
(if (flag "--use-keyboxd" *args*)
|
||||
(call-check `(,@GPG --quiet --yes
|
||||
--export --yes --batch -o mytrustedkeys.gpg)))
|
||||
(for-each-p
|
||||
"Checking that a valid Ed25519 signature is verified as such"
|
||||
(lambda (armored-file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue