From 3ca7e96e384d5872c71ceb3b2e2a05b0c1b7e1a0 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 12 Aug 2013 14:32:21 +0200 Subject: 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/final.test | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 tests/gpg/final.test (limited to 'tests/gpg/final.test') diff --git a/tests/gpg/final.test b/tests/gpg/final.test new file mode 100755 index 00000000..5148a34b --- /dev/null +++ b/tests/gpg/final.test @@ -0,0 +1,4 @@ +#!/bin/sh + +${srcdir}/start-stop-agent --stop +exit 0 -- cgit v1.2.3