Make test suite workable with GnuPG 2.1.
authorWerner Koch <wk@gnupg.org>
Mon, 12 Aug 2013 12:32:21 +0000 (14:32 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 12 Aug 2013 12:32:21 +0000 (14:32 +0200)
commit3ca7e96e384d5872c71ceb3b2e2a05b0c1b7e1a0
tree217f1467bb82074b3983b5a6854e2e75e9d66a7b
parent069ac580373923f5635b7172ecff79eb189f6944
Make test suite workable with GnuPG 2.1.

* tests/gpg/start-stop-agent: New.
* tests/gpg/initial.test: New.
* tests/gpg/final.test: New.
* tests/gpg/Makefile.am (c_tests): New.
(TESTS): Move all to c_tests.  Add initial.test, final.test, and
c_tests.
(TESTS_ENVIRONMENT): Add C_ALL=C
(private_keys): New.
(EXTRA_DIST): Add new files.
(./private-keys-v1.d/gpg-sample.stamp): Copy private keys.
(all-local): Depend on gpg-sample.stamp.
* tests/gpg/13CBE3758AFE42B5E5E2AE4CED27AFA455E3F87F: New.
* tests/gpg/13CD0F3BDF24BE53FE192D62F18737256FF6E4FD: New.
* tests/gpg/76F7E2B35832976B50A27A282D9B87E44577EB66: New.
* tests/gpg/7A030357C0F253A5BBCD282FFC4E521B37558F5C: New.
* tests/gpg/A0747D5F9425E6664F4FFBEED20FBCA79FDED2BD: New.
--

GnuPG 2.1 requires that the agent knows the private keys.  Thus we
need to install them.  The code should still work with GnuPG < 2.1.

To make the whole testing using a agent more robust, the way to start
the agent has also be changed.
tests/gpg/13CBE3758AFE42B5E5E2AE4CED27AFA455E3F87F [new file with mode: 0644]
tests/gpg/13CD0F3BDF24BE53FE192D62F18737256FF6E4FD [new file with mode: 0644]
tests/gpg/76F7E2B35832976B50A27A282D9B87E44577EB66 [new file with mode: 0644]
tests/gpg/7A030357C0F253A5BBCD282FFC4E521B37558F5C [new file with mode: 0644]
tests/gpg/A0747D5F9425E6664F4FFBEED20FBCA79FDED2BD [new file with mode: 0644]
tests/gpg/Makefile.am
tests/gpg/final.test [new file with mode: 0755]
tests/gpg/initial.test [new file with mode: 0755]
tests/gpg/start-stop-agent [new file with mode: 0755]