tests: Honor environment variable 'TMP'.
authorJustus Winter <justus@g10code.com>
Tue, 5 Jul 2016 14:25:21 +0000 (16:25 +0200)
committerJustus Winter <justus@g10code.com>
Tue, 5 Jul 2016 14:25:21 +0000 (16:25 +0200)
commit8270580a5a70874beeffcdd16221937db4bcdc93
treea2346b8af4b1a4bb93feef9f26c64418b7ff9ad5
parentf26fe4f73e8430d93c03d95a8a24fdabd078bb20
tests: Honor environment variable 'TMP'.

This fixes problems with long socket names, e.g. when doing distcheck.

* tests/gpgscm/tests.scm (path-join): New function.
(with-temporary-working-directory): Honor 'TMP'.
(make-temporary-file): Likewise.
* tests/migrations/Makefile.am (TMP): Default to '/tmp'.
(TESTS_ENVIRONMENT): Set 'TMP'.
* tests/openpgp/Makefile.am (TMP): Default to '/tmp'.
(TESTS_ENVIRONMENT): Set 'TMP'.

Signed-off-by: Justus Winter <justus@g10code.com>
tests/gpgscm/tests.scm
tests/migrations/Makefile.am
tests/openpgp/Makefile.am