Tweak unit test script to ensure LD paths are set 87/4587/1
authorE. Scott Daniels <daniels@research.att.com>
Thu, 20 Aug 2020 14:44:38 +0000 (10:44 -0400)
committerE. Scott Daniels <daniels@research.att.com>
Thu, 20 Aug 2020 14:44:38 +0000 (10:44 -0400)
The LD_LIBRARY family of environment variables are not set in some
of the CI build/test environments.  This change ensures they are
set to include /usr/local/* things in order to pick up RMR.

Issue-ID: RIC-632

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I0309b6ce624c9b29d2eb121594a9c17d00220c2e

sidecars/listener/run_unit_test.ksh

index 8d350fb..2942c05 100755 (executable)
@@ -57,6 +57,12 @@ function purge_dirs {
        rm -fr /tmp/mc_listener_test
 }
 
+# ------------------------------------------------------------------------------------------------
+# these aren't set by default in some of the CI environments
+#
+export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
+export LIBRARY_PATH=/usr/local/lib:$LIBRARY_PATH
+
 if ! make -B unit_test                 # ensure that it's fresh
 then
        echo "[FAIL] cannot make unit_test"