test(app): Support lib64 based Linix flavours
[ric-plt/lib/rmr.git] / test / app_test / run_rr_test.ksh
index 2e52aa6..3727cc2 100644 (file)
@@ -21,7 +21,7 @@
 # ---------------------------------------------------------------------------------
 #      Mnemonic:       run_multi_test.ksh
 #      Abstract:       This is a simple script to set up and run the basic send/receive
-#                              processes for some library validation on top of nano/nng. This 
+#                              processes for some library validation on top of nano/nng. This
 #                              particular tests starts several receivers and creates a route table
 #                              which causes messages to be sent round robin to all of the receivers.
 #                              The number of messages command line parameter (-n) will be the number
@@ -118,7 +118,7 @@ nrcvrs=3                                    # this is sane, but -r allows it to be set up
 
 while [[ $1 == -* ]]
 do
-       case $1 in 
+       case $1 in
                -B)     rebuild=1;;
                -d)     delay=$2; shift;;
                -N)     nano_sender=1
@@ -145,7 +145,7 @@ then
        export RMR_VCTL_FILE=".verbose"
 fi
 
-if (( rebuild )) 
+if (( rebuild ))
 then
        build_path=../../.build
        set -e
@@ -162,7 +162,12 @@ else
        fi
 fi
 
-export LD_LIBRARY_PATH=$build_path:$build_path/lib
+if [[ -d $build_path/lib64 ]]
+then
+       export LD_LIBRARY_PATH=$build_path:$build_path/lib64
+else
+       export LD_LIBRARY_PATH=$build_path:$build_path/lib
+fi
 export LIBRARY_PATH=$LD_LIBRARY_PATH
 export RMR_SEED_RT=./rr.rt