summaryrefslogtreecommitdiffstats
path: root/tests/test-wrapper.sh
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2005-11-18 02:25:14 +0000
committerRoland McGrath <[email protected]>2005-11-18 02:25:14 +0000
commitaf74f5caf37125be18b1134b3584a7db383d8486 (patch)
tree8bee0fa3d24920ad552dab93ea3c994f8bc3b172 /tests/test-wrapper.sh
parent093281dd420f2861c2a213f28cda425142e626b1 (diff)
2005-11-17 Roland McGrath <[email protected]>
* Makefile.am (installed_TESTS_ENVIRONMENT): Set libdir, bindir in environment for test-wrapper.sh. * test-wrapper.sh: Set LD_LIBRARY_PATH from ${libdir} if not /usr/lib. * test-subr.sh (installed_testrun): Likewise. Use explicit path in ${bindir}.
Diffstat (limited to 'tests/test-wrapper.sh')
-rwxr-xr-xtests/test-wrapper.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-wrapper.sh b/tests/test-wrapper.sh
index 2abcc74e..a4f2a218 100755
--- a/tests/test-wrapper.sh
+++ b/tests/test-wrapper.sh
@@ -45,6 +45,9 @@ case "$1" in
elif [ $elfutils_tests_rpath = yes ]; then
echo >&2 installcheck not possible with --enable-tests-rpath
exit 77
+ elif [ "x$libdir" != x/usr/lib ]; then
+ LD_LIBRARY_PATH="$libdir${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
+ export LD_LIBRARY_PATH
fi
;;
esac