1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: improve LD_LIBRARY_PATH setting

Some linkers do need libdevmapper-event-lvm2.so.2.03,
so add also this symlink to the tests  /lib dir.
This fixes the need to use previous LD_LIBRARY_PATH complex
setting and now works with much shorter list.
This commit is contained in:
Zdenek Kabelac 2023-07-13 21:25:15 +02:00
parent 4ae2dde5c3
commit f24eb81dbe

View File

@ -109,11 +109,13 @@ cd "$TESTDIR"
mkdir lib tmp
# Setting up symlink from $i to $TESTDIR/lib
# library libdevmapper-event-lvm2.so.2.03 is needed with name
test -n "${abs_top_builddir+varset}" && \
find "$abs_top_builddir/daemons/dmeventd/plugins/" -name '*.so' \
find "$abs_top_builddir/daemons/dmeventd/plugins/" -name '*.so*' \
-exec ln -s -t lib "{}" +
find "$TESTOLDPWD/lib" ! \( -name '*.sh' -o -name '*.[cdo]' \
-o -name '*~' \) -exec ln -s -t lib "{}" +
LD_LIBRARY_PATH="$TESTDIR/lib:$LD_LIBRARY_PATH"
DM_DEFAULT_NAME_MANGLING_MODE=none
DM_DEV_DIR="$TESTDIR/dev"