1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: fix LD_LIBRARY_PATH

Use only selected paths for finding .so in builddir.
So if builddir constains some embeded subdirs with some more
occurences of project (i.e.  'make rpm' build subdir)
those library paths will not get into list.
This commit is contained in:
Zdenek Kabelac 2017-03-31 15:27:58 +02:00
parent 970df59f91
commit fb1f38a6f6

View File

@ -259,10 +259,9 @@ if test -z "${installed_testsuite+varset}"; then
*"$abs_top_builddir/test/lib"*) ;; *"$abs_top_builddir/test/lib"*) ;;
*) *)
PATH="$abs_top_builddir/test/lib":"$abs_top_builddir/test/api":$PATH PATH="$abs_top_builddir/test/lib":"$abs_top_builddir/test/api":$PATH
for i in `find $abs_top_builddir -name \*.so`; do LD_LIBRARY_PATH=$(find -L "$abs_top_builddir/libdm/" "$abs_top_builddir/tools/"\
p=`dirname $i` "$abs_top_builddir/daemons/" "$abs_top_builddir/liblvm/"\
LD_LIBRARY_PATH="$p":$LD_LIBRARY_PATH -name "*.so" -printf "%h:")"$LD_LIBRARY_PATH"
done
export PATH LD_LIBRARY_PATH ;; export PATH LD_LIBRARY_PATH ;;
esac esac
fi fi