lynxis lazus has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/30700 )
Change subject: osmo-bts: add simple run_fake_trx.sh ......................................................................
osmo-bts: add simple run_fake_trx.sh
Most BTS_Tests require to run fake_trx. Add a simple run_fake_trx.sh script when running these test without docker.
Change-Id: Ie3a68931bd52f55570409bb35962cebbfd58d168 --- A bts/run_fake_trx.sh 1 file changed, 11 insertions(+), 0 deletions(-)
Approvals: laforge: Looks good to me, but someone else must approve pespin: Looks good to me, approved Jenkins Builder: Verified
diff --git a/bts/run_fake_trx.sh b/bts/run_fake_trx.sh new file mode 100755 index 0000000..2209972 --- /dev/null +++ b/bts/run_fake_trx.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Most BTS_Tests require to have fake_trx running. +# fake trx is part of osmo-trx +FAKE_TRX_DIR="${FAKE_TRX_DIR:-../../osmo-trx/osmocom-bb/src/target/trx_toolkit}" + +if [ -n "$FAKE_TRX_DIR" ] ; then + cd "$FAKE_TRX_DIR" +fi + +exec ./fake_trx.py --trx TRX1@127.0.0.1:5700/1 --trx TRX2@127.0.0.1:5700/2 --trx TRX3@127.0.0.1:5700/3