[PATCH] tests/openpgp: Provide fake pinentries for downstream developers.

Justus Winter justus at g10code.com
Tue Sep 13 09:44:15 CEST 2016


Hi,

Daniel Kahn Gillmor <dkg at fifthhorseman.net> writes:

> * tests/openpgp/fake-pinentries/README.txt and
>   tests/openpgp/fake-pinentries/fake-pinentry.{sh,py,pl,php}}: New
>   public domain files to encourage better test suite practices from
>   downstream developers.

Cool, though I'd suggest to move it to tests/fake-pinentries, the
pinentries are not openpgp specific after all.  Also...

> +The solution for this is to use a fake pinentry in your test suite,
> +one that simply returns a pre-selected passphrase.  In this case, all
> +the other code is the 
> diff --git a/tests/openpgp/fake-pinentries/fake-pinentry.php b/tests/openpgp/fake-pinentries/fake-pinentry.php
> new file mode 100755
> index 0000000..2d8f2c8
> --- /dev/null
> +++ b/tests/openpgp/fake-pinentries/fake-pinentry.php

the README is truncated.


Cheers,
Justus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 454 bytes
Desc: not available
URL: </pipermail/attachments/20160913/99555360/attachment.sig>


More information about the Gnupg-devel mailing list