X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=sim%2Fe2-interface.git;a=blobdiff_plain;f=e2sim%2Fe2apv1sim%2Fe2sim%2Ftest%2Frmr_interface%2Ftests%2Freceiver%2Fbuild_and_run_recvr.sh;fp=e2sim%2Fe2apv1sim%2Fe2sim%2Ftest%2Frmr_interface%2Ftests%2Freceiver%2Fbuild_and_run_recvr.sh;h=602046f915f76d8e3f46c3cf7fafbec35e5c4116;hp=0000000000000000000000000000000000000000;hb=3ebf932d23dcbec9ed19f4a51f9d00a0a54f5124;hpb=6896318f2b4ff01b4a88b16019c3dc93b0b693f5 diff --git a/e2sim/e2apv1sim/e2sim/test/rmr_interface/tests/receiver/build_and_run_recvr.sh b/e2sim/e2apv1sim/e2sim/test/rmr_interface/tests/receiver/build_and_run_recvr.sh new file mode 100755 index 0000000..602046f --- /dev/null +++ b/e2sim/e2apv1sim/e2sim/test/rmr_interface/tests/receiver/build_and_run_recvr.sh @@ -0,0 +1,30 @@ +#!/bin/bash -eu +# +# +# Copyright 2019 AT&T Intellectual Property +# Copyright 2019 Nokia +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +export C_INCLUDE_PATH=$HOME/usr/include +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/usr/lib +export RMR_SEED_RT=$HOME/global_rmr_files/global_rmr_routes.rt +gcc rmr_rcvr.c -g -o rmr_rcvr -L $HOME/usr/lib -lrmr_nng -lnng -lpthread -lm + +export PENDULUM_XAPP_RMR_RCV_PORT=5560 +export DEMO_SENDER_PTO=1 # poll timeout listening for replies + +export PRINT_FREQ=10000 #frequency at which test stats will be printed + +RMR_RCV_ACK=1 ./rmr_rcvr $PRINT_FREQ; # receiver that will ack every sender message