aboutsummaryrefslogtreecommitdiffstats
path: root/tests/migrations
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-07-05 14:25:21 +0000
committerJustus Winter <[email protected]>2016-07-05 14:25:21 +0000
commit8270580a5a70874beeffcdd16221937db4bcdc93 (patch)
treea2346b8af4b1a4bb93feef9f26c64418b7ff9ad5 /tests/migrations
parentgpgscm: Improve robustness and compatibility. (diff)
downloadgnupg-8270580a5a70874beeffcdd16221937db4bcdc93.tar.gz
gnupg-8270580a5a70874beeffcdd16221937db4bcdc93.zip
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 <[email protected]>
Diffstat (limited to 'tests/migrations')
-rw-r--r--tests/migrations/Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/migrations/Makefile.am b/tests/migrations/Makefile.am
index 0377b23d6..9c82d66ee 100644
--- a/tests/migrations/Makefile.am
+++ b/tests/migrations/Makefile.am
@@ -26,8 +26,11 @@ include $(top_srcdir)/am/cmacros.am
AM_CFLAGS =
+TMP ?= /tmp
+
TESTS_ENVIRONMENT = GPG_AGENT_INFO= LC_ALL=C \
PATH=../gpgscm:$(PATH) \
+ TMP=$(TMP) \
GPGSCM_PATH=$(top_srcdir)/tests/gpgscm:$(top_srcdir)/tests/migrations
TESTS = from-classic.scm \