mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
tests: Also run all OpenPGP tests using keyrings.
* tests/openpgp/all-tests.scm: Run each test twice, once with public
keys stored in a keybox, once with a keyring.
* tests/openpgp/defs.scm (create-gpghome): Create a public keyring to
make GnuPG use that instead of creating a keybox if '--use-keyring' is
given.
* tests/openpgp/setup.scm: Fix flag handling and usage.
--
This parametrizes the OpenPGP tests. With this change, the test suite
is able to detect problems with the keyring store, e.g. like the one
fixed in 22739433e9
.
GnuPG-bug-id: 3080
Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
f4365790da
commit
bc01d62dc5
3 changed files with 32 additions and 12 deletions
|
@ -328,6 +328,10 @@
|
|||
(make-test-data "random_seed" 600)
|
||||
|
||||
(log "Creating configuration files")
|
||||
|
||||
(if (flag "--use-keyring" *args*)
|
||||
(create-file "pubring.gpg"))
|
||||
|
||||
(create-file "gpg.conf"
|
||||
"no-greeting"
|
||||
"no-secmem-warning"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue