Automated testing of scripts that use GnuPG

Andreas Stieger astieger at
Fri Mar 4 10:18:24 CET 2016


On 03/04/2016 07:48 AM, Dashamir Hoxha wrote:
> [...] develop some wrapper shell scripts [...]
> But I am having problems because `gpg` has a "nasty" behaviour, it
> always pops up a window for getting the passphrase. Maybe this is a nice
> feature for the normal operation of the scripts, but for automatic
> testing it breaks the 'automatic' part.

You may want to use a configuration that causes GnuPG to use different
pinentry flavour that works in your test rig: the tty one, or a mock
implementation of the simple pinentry protocol, possibly written in
Sharness itself if it can do IPC.


Andreas Stieger <astieger at>
Project Manager Security
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton,
HRB 21284 (AG Nürnberg)

More information about the Gnupg-devel mailing list