X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=test%2Fapp_test%2Frun_app_test.ksh;fp=test%2Fapp_test%2Frun_app_test.ksh;h=3c4f20e90793c664ffb6b3927da8b34bde129315;hb=a41c6f5f26b3a44009f4aff3df3f83b9a79ace01;hp=7ad4934fb0160c8ea1273d68959a6219cf376237;hpb=8790bf0c4f4f08fd05853afa67e211112b344a42;p=ric-plt%2Flib%2Frmr.git diff --git a/test/app_test/run_app_test.ksh b/test/app_test/run_app_test.ksh index 7ad4934..3c4f20e 100644 --- a/test/app_test/run_app_test.ksh +++ b/test/app_test/run_app_test.ksh @@ -73,6 +73,7 @@ nano_sender=0 # start nano version if set (-N) nano_receiver=0 wait=1 rebuild=0 +verbose=0 while [[ $1 == -* ]] do @@ -83,6 +84,7 @@ do nano_receiver=1 ;; -n) nmsg=$2; shift;; + -v) verbose=1;; *) echo "unrecognised option: $1" echo "usage: $0 [-B] [-d micor-sec-delay] [-N] [-n num-msgs]" @@ -94,23 +96,18 @@ do shift done +if (( verbose )) +then + echo "2" >.verbose + export RMR_VCTL_FILE=".verbose" +fi + if (( rebuild )) then build_path=../../.build - - ( - set -e - mkdir -p $build_path - cd ${build_path%/*} # cd barfs on ../../.build, so we do this - cd ${build_path##*/} - cmake .. - make package - ) - if (( $? != 0 )) - then - echo "build failed" - exit 1 - fi + set -e + ksh ./rebuild.ksh + set +e else build_path=${BUILD_PATH:-"../../.build"} # we prefer .build at the root level, but allow user option @@ -137,6 +134,7 @@ then fi run_rcvr & +sleep 2 # if sender starts faster than rcvr we can drop, so pause a bit run_sender & wait @@ -151,6 +149,7 @@ else fi rm /tmp/PID$$.* +rm -f .verbose exit $(( !! (src + rrc) ))