enhance(API): Add source IP support to msg header
[ric-plt/lib/rmr.git] / test / unit_test.ksh
index 929976c..c94d4cd 100755 (executable)
@@ -305,22 +305,22 @@ function mk_xml {
 # -----------------------------------------------------------------------------------------------------------------
 
 # we assume that the project has been built in the ../[.]build directory
-if [[ -d ../build/lib ]]
+if [[ -d ../build ]]
 then
-       export LD_LIBRARY_PATH=../build/lib
+       export LD_LIBRARY_PATH=../build/lib:../build/lib64
 else
-       if [[ -d ../.build/lib ]]
+       if [[ -d ../.build ]]
        then
-               export LD_LIBRARY_PATH=../.build/lib
+               export LD_LIBRARY_PATH=../.build/lib:../.build/lib64
                export C_INCLUDE_PATH=../.build/include
 
        else
-               echo "[WARN] cannot find ../[.]build/lib; things might not work"
+               echo "[WARN] cannot find build directory (tried ../build and ../.build); things might not work"
                echo ""
        fi
 fi
 
-export C_INCLUDE_PATH="../src/common/include:$C_INCLUDE_PATH"
+export C_INCLUDE_PATH="../src/rmr/common/include:$C_INCLUDE_PATH"
 
 module_cov_target=80
 builder="make -B %s"           # default to plain ole make
@@ -353,7 +353,7 @@ do
                -x)     gen_xml=1
                        force_discounting=1
                        trigger_discount_str="WARN|FAIL|PASS"           # check all outcomes for each module
-                       rm *cov.xml
+                       rm -fr *cov.xml
                        ;;
 
                -h)     usage; exit 0;;
@@ -397,7 +397,7 @@ else
 fi
 
 
-rm *.gcov                      # ditch the previous coverage files
+rm -fr *.gcov                  # ditch the previous coverage files
 ut_errors=0                    # unit test errors (not coverage errors)
 errors=0