From f24eb81dbea7d7324550f11f04e1dc5bc966500d Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 13 Jul 2023 21:25:15 +0200 Subject: [PATCH] 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. --- test/lib/inittest.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/lib/inittest.sh b/test/lib/inittest.sh index 0becf2215..40ea98ff8 100644 --- a/test/lib/inittest.sh +++ b/test/lib/inittest.sh @@ -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"