summaryrefslogtreecommitdiff
path: root/src/test/include.am
diff options
context:
space:
mode:
authorcypherpunks <cypherpunks@torproject.org>2015-09-25 16:39:11 +0200
committerNick Mathewson <nickm@torproject.org>2015-12-14 13:11:20 -0500
commit670affa792e7613f6e6b5d960805418359ac0ec7 (patch)
treec71b7044315e26b16537a22a1f1b2aa1262b6356 /src/test/include.am
parentaa40f289624c74bcd43b91f15cc43e7f17e9df25 (diff)
downloadtor-670affa792e7613f6e6b5d960805418359ac0ec7.tar.gz
tor-670affa792e7613f6e6b5d960805418359ac0ec7.zip
Only setup environment variables for tests
Using the AM_TESTS_ENVIRONMENT variable ensures the environment variables are only set during test execution and not during the compilation phase.
Diffstat (limited to 'src/test/include.am')
-rw-r--r--src/test/include.am11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/test/include.am b/src/test/include.am
index a37fe23db8..a24c5bb1b4 100644
--- a/src/test/include.am
+++ b/src/test/include.am
@@ -1,8 +1,9 @@
-
-export PYTHON=@PYTHON@
-export SHELL=@SHELL@
-export abs_top_srcdir=@abs_top_srcdir@
-export builddir=@builddir@
+AM_TESTS_ENVIRONMENT = \
+ export PYTHON=@PYTHON@; \
+ export SHELL=@SHELL@; \
+ export abs_top_srcdir=@abs_top_srcdir@; \
+ export builddir=@builddir@; \
+ export TESTING_TOR_BINARY="$(TESTING_TOR_BINARY)";
TESTSCRIPTS = src/test/test_zero_length_keys.sh