Diffusion GPGME e6f28273062f

tests: Add option "allow-del" to run-threaded

Authored by aheinecke on Jun 6 2019, 9:19 AM.

Description

tests: Add option "allow-del" to run-threaded

* tests/run-threaded.c (main): Handle allow-del.
(allow-del): New. Variable to allow deletion of keys.
(import): Delete key after import if allow-del is set.
(delete_impres): Delete keys from an import result.
(delete_fpr): Delete a key by fingerprint.

This is intended to test write access and locking of the
keyring by repeatedly importing and deleting pubkeys.

It is an option because it might cause keyring corruption
etc. so it should be explicitly enabled.

Details

Committed
aheineckeJun 6 2019, 9:19 AM
Parents
rM024a7f75d4b8: tests: Implement import in run-threaded
Branches
Unknown
Tags
Unknown