Prepend LD_LIBRARY_PATH for python tests
authorAndre Heinecke <aheinecke@intevation.de>
Mon, 8 Aug 2016 13:04:01 +0000 (15:04 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Mon, 8 Aug 2016 13:04:01 +0000 (15:04 +0200)
* lang/python/tests/Makefile.am (TESTS_ENVIRONMENT): Prepend path
instead of setting the value.

--
This fixes the case where tools / libararies are needed for
a working GnuPG system that are pointed to by LD_LIBRARY_PATH.
E.g. GnuPG itself is installed in a custom prefix and PATH /
LD_LIBRARY_PATH is set accordingly.

lang/python/tests/Makefile.am

index bc571fe..83c4d8e 100644 (file)
@@ -26,7 +26,7 @@ test_srcdir = $(top_srcdir)/tests/gpg
 TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir) \
        LC_ALL=C GPG_AGENT_INFO= \
        top_srcdir=$(top_srcdir) \
-       LD_LIBRARY_PATH="../../../src/.libs" \
+       LD_LIBRARY_PATH="../../../src/.libs:$(LD_LIBRARY_PATH)" \
        PYTHONPATH=`echo $(abs_builddir)/../build/lib.*`
 
 py_tests = t-wrapper.py \