osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38853?usp=email )
Change subject: WIP: testenv: bts: add virtphy config ......................................................................
WIP: testenv: bts: add virtphy config
Currently fails to start up, see related issue.
Related: OS#6638 Change-Id: I1e55e74990c67a60708317c52100a69e4d79db22 --- A bts/BTS_Tests_VIRTPHY.cfg A bts/osmo-bts-virtphy.confmerge A bts/prepare_virtphy.sh A bts/testenv_virtphy.cfg 4 files changed, 64 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/53/38853/1
diff --git a/bts/BTS_Tests_VIRTPHY.cfg b/bts/BTS_Tests_VIRTPHY.cfg new file mode 100644 index 0000000..5081255 --- /dev/null +++ b/bts/BTS_Tests_VIRTPHY.cfg @@ -0,0 +1,28 @@ +[ORDERED_INCLUDE] +"../Common.cfg" +"./BTS_Tests.default" + +[LOGGING] +*.JUnitLogger.filename_stem := "junit-xml-virtphy" + +[TESTPORT_PARAMETERS] + +[MODULE_PARAMETERS] +BTS_Tests.mp_rsl_ip := "127.0.0.10" +BTS_Tests.mp_bts_trxc_ip := "127.0.0.21" +BTS_Tests.mp_pcu_socket := "/tmp/pcu_sock" +L1CTL_PortType.m_l1ctl_sock_path := "/tmp/osmocom_l2" +BTS_Tests.mp_ctrl_ip := "127.0.0.20" +BTS_Tests.mp_l1_supports_gprs := true +BTS_Tests.mp_bts_trxc_port := -1 +PCUIF_Types.mp_pcuif_version := 12 + +[MAIN_CONTROLLER] + +[EXECUTE] +BTS_Tests.TC_pcu_data_req_pdtch +BTS_Tests.TC_pcu_data_req_ptcch +BTS_Tests.TC_pcu_data_req_wrong_bts +BTS_Tests.TC_pcu_data_req_wrong_trx +BTS_Tests.TC_pcu_data_req_wrong_ts +BTS_Tests.TC_pcu_data_req_ts_inactive diff --git a/bts/osmo-bts-virtphy.confmerge b/bts/osmo-bts-virtphy.confmerge new file mode 100644 index 0000000..d4f95d1 --- /dev/null +++ b/bts/osmo-bts-virtphy.confmerge @@ -0,0 +1,6 @@ +phy 0 + !virtual-um ms-multicast-group 239.193.23.1 + !virtual-um bts-multicast-group 239.193.23.2 +bts 0 + trx 0 + power-ramp step-size 2000 mdB diff --git a/bts/prepare_virtphy.sh b/bts/prepare_virtphy.sh new file mode 100755 index 0000000..15ac837 --- /dev/null +++ b/bts/prepare_virtphy.sh @@ -0,0 +1,5 @@ +#!/bin/sh -ex +osmo-config-merge osmo-bts.cfg osmo-bts-virtphy.confmerge > osmo-bts-virtphy.cfg + +# Can't delete lines with osmo-config-merge +sed -i '/^ *osmotrx .*/d' osmo-bts-virtphy.cfg diff --git a/bts/testenv_virtphy.cfg b/bts/testenv_virtphy.cfg new file mode 100644 index 0000000..bac8ea0 --- /dev/null +++ b/bts/testenv_virtphy.cfg @@ -0,0 +1,25 @@ +[testsuite] +program=BTS_Tests +config=BTS_Tests_VIRTPHY.cfg + +[bsc] +program=osmo-bsc +make=osmo-bsc +package=osmo-bsc +copy=osmo-bsc.cfg + +[fake-trx] +program=run_fake_trx.sh +make=.make.osmocom-bb.clone + +[virtphy] +program=virtphy -s /tmp/osmocom_l2 +make=virtphy + +[bts] +prepare=prepare_virtphy.sh +program=osmo-bts-virtual -c osmo-bts-virtphy.cfg +make=osmo-bts +package=osmo-bts libosmocore-utils +copy=osmo-bts.cfg osmo-bts-virtphy.confmerge +vty_port=4241