lynxis lazus submitted this change.

View Change

Approvals: laforge: Looks good to me, but someone else must approve pespin: Looks good to me, approved Jenkins Builder: Verified
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(-)

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

To view, visit change 30700. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ie3a68931bd52f55570409bb35962cebbfd58d168
Gerrit-Change-Number: 30700
Gerrit-PatchSet: 2
Gerrit-Owner: lynxis lazus <lynxis@fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: lynxis lazus <lynxis@fe80.eu>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>
Gerrit-MessageType: merged