From fefb2f03c3fe49e855f21f7d4952b6a2318113cc Mon Sep 17 00:00:00 2001 From: Tony Asleson Date: Fri, 26 Oct 2012 15:30:21 -0500 Subject: [PATCH] test: set LD_LIBRARY_PATH to all dirs with *.so Instead of manually editing entries, add all the directories which contain shared objects. Signed-off-by: Tony Asleson --- test/lib/utils.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/lib/utils.sh b/test/lib/utils.sh index 70d9f66ff..ab5abc10f 100644 --- a/test/lib/utils.sh +++ b/test/lib/utils.sh @@ -204,11 +204,11 @@ test -n "${abs_top_builddir+varset}" || . lib/paths || die "you must run make fi case "$PATH" in *"$abs_top_builddir/test/lib"*) ;; *) - PATH="$abs_top_builddir/test/lib":$PATH - for d in daemons/dmeventd/plugins/mirror daemons/dmeventd/plugins/snapshot \ - daemons/dmeventd/plugins/lvm2 daemons/dmeventd liblvm tools libdm; do - LD_LIBRARY_PATH="$abs_top_builddir/$d":$LD_LIBRARY_PATH - done + PATH="$abs_top_builddir/test/lib":"$abs_top_builddir/test/api":$PATH + for i in `find $abs_top_builddir -name \*.so`; do + p=`dirname $i` + LD_LIBRARY_PATH="$p":$LD_LIBRARY_PATH + done export PATH LD_LIBRARY_PATH ;; esac