X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fapp_test%2Frun_exrts_test.ksh;h=9bd198d602b2e73a9ac69d5fa6a985f81877a5c2;hb=refs%2Ftags%2F3.3.0;hp=58913b4b7cdca5f95534c6a31907619e874d4b77;hpb=6b1712a0f1c2fb37eec04b3114ce1956800f74c9;p=ric-plt%2Flib%2Frmr.git diff --git a/test/app_test/run_exrts_test.ksh b/test/app_test/run_exrts_test.ksh index 58913b4..9bd198d 100644 --- a/test/app_test/run_exrts_test.ksh +++ b/test/app_test/run_exrts_test.ksh @@ -150,14 +150,13 @@ fi if (( use_installed )) # point at installed library then - export LD_LIBRARY_PATH=/usr/local/lib - export LIBRARY_PATH=$LD_LIBRARY_PATH + export LD_LIBRARY_PATH=${LD_LIBRARY_PATH-:/usr/local/lib} # use caller's or set sane default else if (( rebuild )) then build_path=../../.build # if we rebuild we can insist that it is in .build :) set -e - ksh ./rebuild.ksh + $SHELL ./rebuild.ksh set +e else build_path=${BUILD_PATH:-"../../.build"} # we prefer .build at the root level, but allow user option @@ -172,9 +171,9 @@ else if [[ -d $build_path/lib64 ]] then - export LD_LIBRARY_PATH=$build_path:$build_path/lib64 + export LD_LIBRARY_PATH=$build_path:$build_path/lib64:$LD_LIBRARY_PATH else - export LD_LIBRARY_PATH=$build_path:$build_path/lib + export LD_LIBRARY_PATH=$build_path:$build_path/lib:$LD_LIBRARY_PATH fi fi @@ -183,9 +182,12 @@ export RMR_SEED_RT=./ex_rts.rt set_rt $nrcvrs # set up the rt for n receivers -if ! make -B $mt_call_flag v_sender${si} ex_rts_receiver${si} >/tmp/PID$$.log 2>&1 # for sanity, always rebuild test binaries +if ! build_path=$build_path make -B $mt_call_flag v_sender${si} ex_rts_receiver${si} >/tmp/PID$$.log 2>&1 # for sanity, always rebuild test binaries then echo "[FAIL] cannot make binaries" + echo "=====" + env + echo "=====" cat /tmp/PID$$.log rm -f /tmp/PID$$* exit 1