Automated testing of scripts that use GnuPG
justus at g10code.com
Fri Mar 4 11:10:47 CET 2016
Quoting Andreas Stieger (2016-03-04 10:18:24)
> 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.
Exactly. See e.g. tests/openpgp/pinentry.sh for such a mock
More information about the Gnupg-devel