summaryrefslogtreecommitdiffstats
path: root/src/bin/xfrin
diff options
context:
space:
mode:
authorJINMEI Tatuya <jinmei@isc.org>2010-08-18 22:51:43 +0200
committerJINMEI Tatuya <jinmei@isc.org>2010-08-18 22:51:43 +0200
commit861cb51490928a3eca5d6b5e85745acb8c6b9654 (patch)
treea5d7eb5e3557f36e1274023775e855d56106bc57 /src/bin/xfrin
parentshortlived branch for trac #313 (diff)
downloadkea-861cb51490928a3eca5d6b5e85745acb8c6b9654.tar.xz
kea-861cb51490928a3eca5d6b5e85745acb8c6b9654.zip
explicitly specify DYLD_LIBRARY_PATH for darwin (MacOS X) for "from source" operations.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac313@2764 e5f2f494-b856-4b98-b285-d166d9295462
Diffstat (limited to 'src/bin/xfrin')
-rw-r--r--src/bin/xfrin/tests/Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/xfrin/tests/Makefile.am b/src/bin/xfrin/tests/Makefile.am
index 1d64225653..63a5eab428 100644
--- a/src/bin/xfrin/tests/Makefile.am
+++ b/src/bin/xfrin/tests/Makefile.am
@@ -1,6 +1,13 @@
PYTESTS = xfrin_test.py
EXTRA_DIST = $(PYTESTS)
+# If necessary (rare cases), explicitly specify paths to dynamic libraries
+# required by loadable python modules.
+B10_LIBRARY_PATH =
+if SET_ENV_LIBRARY_PATH
+B10_LIBRARY_PATH += $(ENV_LIBRARY_PATH)=$(abs_top_builddir)/src/lib/dns/.libs:$(abs_top_builddir)/src/lib/exceptions/.libs:$(abs_top_builddir)/src/lib/xfr/.libs:$$$(ENV_LIBRARY_PATH)
+endif
+
# later will have configure option to choose this, like: coverage run --branch
PYCOVERAGE = $(PYTHON)
# test using command-line arguments, so use check-local target instead of TESTS
@@ -8,5 +15,6 @@ check-local:
for pytest in $(PYTESTS) ; do \
echo Running test: $$pytest ; \
env PYTHONPATH=$(abs_top_builddir)/src/lib/dns/python/.libs:$(abs_top_builddir)/src/bin/xfrin:$(abs_top_srcdir)/src/lib/python:$(abs_top_builddir)/src/lib/python \
+ $(B10_LIBRARY_PATH) \
$(PYCOVERAGE) $(abs_srcdir)/$$pytest ; \
done