Skip to content
Snippets Groups Projects
Commit 7f876acef195 authored by Nick Wellnhofer's avatar Nick Wellnhofer
Browse files

Set library path when running Python tests

Copied from libxml2.

Should fix #75.
parent 71a7951b8ad0
Branches
No related tags found
No related merge requests found
......@@ -9,5 +9,8 @@
dist_example_DATA = test.xml test.xsl pyxsltproc.py $(TESTSPY)
tests: $(TESTSPY)
@(PYTHONPATH="`pwd`/..:`pwd`/../.libs:$(srcdir)/.."; \
@(export PYTHONPATH="..:../.libs:$(srcdir)/..:$$PYTHONPATH"; \
export LD_LIBRARY_PATH="$(top_builddir)/libxslt/.libs:$(top_builddir)/libexslt/.libs:$$LD_LIBRARY_PATH"; \
export DYLD_LIBRARY_PATH="$(top_builddir)/libxslt/.libs:$(top_builddir)/libexslt/.libs:$$DYLD_LIBRARY_PATH"; \
export PATH="$(top_builddir)/libxslt/.libs:$(top_builddir)/libexslt/.libs:$$PATH" ; \
if test "x$(LIBXML_SRC)" != "x" ; then \
......@@ -13,3 +16,6 @@
if test "x$(LIBXML_SRC)" != "x" ; then \
PYTHONPATH="$$PYTHONPATH:$(LIBXML_SRC)/python:$(LIBXML_SRC)/python/.libs"; \
PYTHONPATH="$(LIBXML_SRC)/python:$(LIBXML_SRC)/python/.libs:$$PYTHONPATH"; \
LD_LIBRARY_PATH="$(LIBXML_SRC)/.libs:$$LD_LIBRARY_PATH"; \
DYLD_LIBRARY_PATH="$(LIBXML_SRC)/.libs:$$DYLD_LIBRARY_PATH"; \
PATH="$(LIBXML_SRC)/.libs:$$PATH" ; \
fi; \
......@@ -15,5 +21,4 @@
fi; \
export PYTHONPATH; \
for test in $(TESTSPY) ; do \
echo "-- $$test" ; \
(cd $(srcdir) && $(PYTHON) $$test ) || exit 1; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment