Bug#834281: [rt.cpan.org #102651] patches to fix the GnuPG::Interface test suite to work with GnuPG 2.1

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Sep 14 17:26:40 UTC 2016


Attached is a series of 7 patches that let the GnuPG::Interface test
suite work with GnuPG 2.1.

These patches can also be found on the improve-test-suite branch at
git://lair.fifthhorseman.net/~dkg/gnupg-interface (commit ID
f5ca0742dd1f724de1765679b493d4cfb7ea216b).

If you want to try them out:

    git remote add dkg git://lair.fifthhorseman.net/~dkg/gnupg-interface
    git remote update dkg
    git checkout -b improve-test-suite dkg/improve-test-suite
    perl Makefile.PL
    make test

Feel free to merge them directly if you like 'em :)

GnuPG 2.1 hasn't actually changed the interface to GnuPG very much:
there's a little bit of a change around expectations of where the
passphrase comes from and who needs to have access to it, but that's a
positive change that helps users to isolate which processes have access
to their secret key material

What has changed more significantly is the structure of the files in
GnuPG's homedir, which has never been part of GnuPG's publicly-declared
stable interface, and GnuPG::Interface's test/ directory sort of
implicitly assumed that it was.

The revised test suite now uses a temporary/throwaway GnuPG homedir,
which it seeds with the data from test/ , rather than assuming that
test/ can act as a pre-formed homedir in the first place.

You'll note that there's very little changed in the non-test-suite part
of GnuPG::Interface with this series.

   --dkg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Generalize-the-test-suite.patch
Type: text/x-diff
Size: 4919 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20160914/b937a3ad/attachment-0007.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-subkey-validity-of-an-key-when-we-have-established-n.patch
Type: text/x-diff
Size: 1313 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20160914/b937a3ad/attachment-0008.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-ensure-that-test-covers-all-signatures.patch
Type: text/x-diff
Size: 1533 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20160914/b937a3ad/attachment-0009.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-add-gpg_is_modern-to-test-suite.patch
Type: text/x-diff
Size: 1617 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20160914/b937a3ad/attachment-0010.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Modern-GnuPG-2.1-reports-more-detail-about-secret-ke.patch
Type: text/x-diff
Size: 5371 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20160914/b937a3ad/attachment-0011.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-test-suite-match-plaintext-output-across-versions-of.patch
Type: text/x-diff
Size: 3316 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20160914/b937a3ad/attachment-0012.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-fix-test_default_key_passphrase-when-passphrase-come.patch
Type: text/x-diff
Size: 1221 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20160914/b937a3ad/attachment-0013.patch>


More information about the pkg-perl-maintainers mailing list