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
This commit is contained in:
Alexander Couzens 2022-12-19 21:48:46 +01:00 committed by lynxis lazus
parent 7954510534
commit 054f13e70b
1 changed files with 11 additions and 0 deletions

11
bts/run_fake_trx.sh Executable file
View File

@ -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