Sanitize tests environment.
authorDamien Goutte-Gattat <dgouttegattat@incenp.org>
Wed, 12 Jul 2017 07:48:19 +0000 (09:48 +0200)
committerDamien Goutte-Gattat <dgouttegattat@incenp.org>
Wed, 12 Jul 2017 07:48:19 +0000 (09:48 +0200)
commit6a3b58fcaa00dc5f91d361e842e61e4dec0ae7f6
tree58013f71fa4148f4660520f27d683954325fa153
parent82ff06a600a22b5ab71be0ec451b24fcd8a55eae
Sanitize tests environment.

* tests/Makefile.am (clean-local): New target.
(TESTS_ENVIRONMENT): New variable.
(EXTRA_DIST): New variable.
* tests/clean-socketdir: New file.
--

We should avoid using the current user's GNUPGHOME directory
(and any pre-existing agent) when running the tests.

Then, since running the tests imply spawning an agent, we should
wipe out the corresponding socket directory upon 'make clean'.
This will also terminate the agent.

GnuPG-bug-id: 3274
Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
tests/Makefile.am
tests/clean-socketdir [new file with mode: 0755]