aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2019-09-02 13:23:02 +0200
committerOliver Smith <osmith@sysmocom.de>2019-09-04 12:42:05 +0200
commit004d569515f052ff96139212870469c51787ef13 (patch)
treeac57a123e0922098e5172fc6b8a7663c1e04e494
parent6b7cab9a47d311317f1d067c689dbded30154499 (diff)
pcu: prepare to run non-RAW testsosmith/pcu-tests
Run virtphy, osmo-bts-virtual and osmo-bsc in jenkins.sh, and add the appropriate configs. Related: OS#3925 Change-Id: I67ca3f280e359112d3ead539abf70b44d631650b
-rw-r--r--ttcn3-pcu-test/PCU_Tests.cfg7
-rwxr-xr-xttcn3-pcu-test/jenkins.sh47
-rw-r--r--ttcn3-pcu-test/osmo-bsc.cfg162
-rw-r--r--ttcn3-pcu-test/osmo-bts.cfg82
4 files changed, 291 insertions, 7 deletions
diff --git a/ttcn3-pcu-test/PCU_Tests.cfg b/ttcn3-pcu-test/PCU_Tests.cfg
index 07af661..b087180 100644
--- a/ttcn3-pcu-test/PCU_Tests.cfg
+++ b/ttcn3-pcu-test/PCU_Tests.cfg
@@ -12,12 +12,17 @@ PCU_Tests.mp_nsconfig := {
local_ip := "172.18.13.10",
local_udp_port := 23000,
remote_ip := "172.18.13.101",
- remote_udp_port := 23000,
+ remote_udp_port := 22000,
nsvci := 1234,
nsei := 1234
}
+L1CTL_PortType.m_l1ctl_sock_path := "/data/unix/osmocom_l2"
[MAIN_CONTROLLER]
[EXECUTE]
PCU_Tests_RAW.control
+
+# Running this after PCU_Tests_RAW does not work yet. But commenting PCU_Tests_RAW.control out, and enabling a single
+# test like PCU_Tests.TC_ul_tbf works.
+# PCU_Tests.control
diff --git a/ttcn3-pcu-test/jenkins.sh b/ttcn3-pcu-test/jenkins.sh
index e78dca0..a362346 100755
--- a/ttcn3-pcu-test/jenkins.sh
+++ b/ttcn3-pcu-test/jenkins.sh
@@ -2,23 +2,38 @@
. ../jenkins-common.sh
IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
+# NOTE: there is no osmocom-bb-host-latest, hence always use master!
docker_images_require \
"debian-stretch-build" \
"osmo-pcu-$IMAGE_SUFFIX" \
+ "osmo-bsc-$IMAGE_SUFFIX" \
+ "osmo-bts-$IMAGE_SUFFIX" \
+ "osmocom-bb-host-master" \
"debian-stretch-titan" \
"ttcn3-pcu-test"
network_create 172.18.13.0/24
-mkdir $VOL_BASE_DIR/pcu-tester
-mkdir $VOL_BASE_DIR/pcu-tester/unix
-cp PCU_Tests.cfg $VOL_BASE_DIR/pcu-tester/
+mkdir -p \
+ $VOL_BASE_DIR/pcu-tester/unix \
+ $VOL_BASE_DIR/pcu/unix \
+ $VOL_BASE_DIR/bsc/unix \
+ $VOL_BASE_DIR/bts/unix \
+ $VOL_BASE_DIR/unix
-mkdir $VOL_BASE_DIR/pcu
-mkdir $VOL_BASE_DIR/pcu/unix
+cp PCU_Tests.cfg $VOL_BASE_DIR/pcu-tester/
cp osmo-pcu.cfg $VOL_BASE_DIR/pcu/
+cp osmo-bsc.cfg $VOL_BASE_DIR/bsc/
+cp osmo-bts.cfg $VOL_BASE_DIR/bts/
-mkdir $VOL_BASE_DIR/unix
+# Multicast does not work in docker between multiple containers:
+# https://github.com/docker/libnetwork/issues/552
+# As workaround, copy virtphy to the bts data dir and run it with osmo-bts-virtual in one container.
+echo Copying virtphy binary
+docker run --rm \
+ -v $VOL_BASE_DIR/bts:/data \
+ $REPO_USER/osmocom-bb-host-master \
+ cp /usr/local/bin/virtphy /data
echo Starting container with PCU
docker run --rm \
@@ -29,6 +44,24 @@ docker run --rm \
$REPO_USER/osmo-pcu-$IMAGE_SUFFIX \
/usr/local/bin/respawn.sh osmo-pcu -c /data/osmo-pcu.cfg
+echo Starting container with BSC
+docker run --rm \
+ --network $NET_NAME --ip 172.18.13.11 \
+ -v $VOL_BASE_DIR/bsc:/data \
+ --name ${BUILD_TAG}-bsc -d \
+ $REPO_USER/osmo-bsc-$IMAGE_SUFFIX \
+ osmo-bsc -c /data/osmo-bsc.cfg
+
+echo Starting container with BTS and virtphy
+docker run --rm \
+ --network $NET_NAME --ip 172.18.13.20 \
+ -v $VOL_BASE_DIR/bts:/data \
+ -v $VOL_BASE_DIR/unix:/data/unix \
+ --name ${BUILD_TAG}-bts -d \
+ $REPO_USER/osmo-bts-$IMAGE_SUFFIX \
+ sh -c "(/data/virtphy -s /data/unix/osmocom_l2 >/data/virtphy.log 2>&1 &); \
+ respawn.sh osmo-bts-virtual -c /data/osmo-bts.cfg -i 172.18.13.10"
+
echo Starting container with PCU testsuite
docker run --rm \
--network $NET_NAME --ip 172.18.13.10 \
@@ -40,6 +73,8 @@ docker run --rm \
echo Stopping containers
docker container kill ${BUILD_TAG}-pcu
+docker container kill ${BUILD_TAG}-bsc
+docker container kill ${BUILD_TAG}-bts
network_remove
rm -rf $VOL_BASE_DIR/unix
diff --git a/ttcn3-pcu-test/osmo-bsc.cfg b/ttcn3-pcu-test/osmo-bsc.cfg
new file mode 100644
index 0000000..0ed8b55
--- /dev/null
+++ b/ttcn3-pcu-test/osmo-bsc.cfg
@@ -0,0 +1,162 @@
+!
+! OsmoBSC (1.1.2.236-5f22) configuration saved from vty
+!!
+password foo
+!
+log gsmtap 172.18.13.10
+ logging level set-all debug
+!
+
+log file /data/osmo-bsc.log
+ logging filter all 1
+ logging print level 1
+ logging print category 1
+ logging print category-hex 0
+ logging print file basename last
+ logging print extended-timestamp 1
+ logging level set-all debug
+
+stats interval 5
+!
+line vty
+ no login
+ bind 172.18.13.11
+!
+e1_input
+ e1_line 0 driver ipa
+ e1_line 0 port 0
+ no e1_line 0 keepalive
+ ipa bind 172.18.13.11
+cs7 instance 0
+ point-code 0.23.3
+ asp asp-clnt-msc-0 2905 0 m3ua
+ as as-clnt-msc-0 m3ua
+ asp asp-clnt-msc-0
+ routing-key 2 0.23.3
+network
+ network country code 262
+ mobile network code 42
+ encryption a5 0
+ neci 1
+ paging any use tch 0
+ handover 0
+ handover1 window rxlev averaging 10
+ handover1 window rxqual averaging 1
+ handover1 window rxlev neighbor averaging 10
+ handover1 power budget interval 6
+ handover1 power budget hysteresis 3
+ handover1 maximum distance 9999
+ periodic location update 30
+ bts 0
+ type sysmobts
+ band DCS1800
+ cell_identity 20960
+ location_area_code 13135
+ dtx uplink force
+ dtx downlink
+ base_station_id_code 63
+ ms max power 15
+ cell reselection hysteresis 4
+ rxlev access min 0
+ radio-link-timeout 32
+ channel allocator ascending
+ rach tx integer 9
+ rach max transmission 7
+ channel-descrption attach 1
+ channel-descrption bs-pa-mfrms 5
+ channel-descrption bs-ag-blks-res 1
+ early-classmark-sending forbidden
+ early-classmark-sending-3g allowed
+ ip.access unit_id 1234 0
+ ip.access rsl-ip 172.18.13.11
+ oml ip.access stream_id 255 line 0
+ neighbor-list mode manual-si5
+ neighbor-list add arfcn 100
+ neighbor-list add arfcn 200
+ si5 neighbor-list add arfcn 10
+ si5 neighbor-list add arfcn 20
+ codec-support fr
+ gprs mode gprs
+ gprs 11bit_rach_support_for_egprs 0
+ gprs routing area 0
+ gprs network-control-order nc0
+ gprs cell bvci 1234
+ gprs cell timer blocking-timer 3
+ gprs cell timer blocking-retries 3
+ gprs cell timer unblocking-retries 3
+ gprs cell timer reset-timer 3
+ gprs cell timer reset-retries 3
+ gprs cell timer suspend-timer 10
+ gprs cell timer suspend-retries 3
+ gprs cell timer resume-timer 10
+ gprs cell timer resume-retries 3
+ gprs cell timer capability-update-timer 10
+ gprs cell timer capability-update-retries 3
+ gprs nsei 1234
+ gprs ns timer tns-block 3
+ gprs ns timer tns-block-retries 3
+ gprs ns timer tns-reset 3
+ gprs ns timer tns-reset-retries 3
+ gprs ns timer tns-test 30
+ gprs ns timer tns-alive 3
+ gprs ns timer tns-alive-retries 10
+ gprs nsvc 0 nsvci 1234
+ gprs nsvc 0 local udp port 22000
+ gprs nsvc 0 remote udp port 23000
+ gprs nsvc 0 remote ip 172.18.13.10
+ no force-combined-si
+ trx 0
+ rf_locked 0
+ arfcn 871
+ nominal power 23
+ max_power_red 20
+ rsl e1 tei 0
+ timeslot 0
+ phys_chan_config CCCH+SDCCH4
+ hopping enabled 0
+ timeslot 1
+ phys_chan_config TCH/H
+ hopping enabled 0
+ timeslot 2
+ phys_chan_config TCH/H
+ hopping enabled 0
+ timeslot 3
+ phys_chan_config TCH/H
+ hopping enabled 0
+ timeslot 4
+ phys_chan_config TCH/H
+ hopping enabled 0
+ timeslot 5
+ phys_chan_config TCH/H
+ hopping enabled 0
+ timeslot 6
+ phys_chan_config TCH/H
+ hopping enabled 0
+ timeslot 7
+ phys_chan_config PDCH
+ hopping enabled 0
+msc 0
+ core-location-area-code 666
+ core-cell-identity 333
+ ip.access rtp-base 4000
+ timeout-ping 12
+ timeout-pong 14
+ no timeout-ping advanced
+ no bsc-welcome-text
+ no bsc-msc-lost-text
+ no bsc-grace-text
+ codec-list fr1 fr2 fr3
+ type normal
+ allow-emergency allow
+ amr-config 12_2k forbidden
+ amr-config 10_2k forbidden
+ amr-config 7_95k forbidden
+ amr-config 7_40k forbidden
+ amr-config 6_70k forbidden
+ amr-config 5_90k allowed
+ amr-config 5_15k forbidden
+ amr-config 4_75k forbidden
+bsc
+ mid-call-timeout 0
+ no missing-msc-text
+ access-list-name bsc-list
diff --git a/ttcn3-pcu-test/osmo-bts.cfg b/ttcn3-pcu-test/osmo-bts.cfg
new file mode 100644
index 0000000..235918e
--- /dev/null
+++ b/ttcn3-pcu-test/osmo-bts.cfg
@@ -0,0 +1,82 @@
+!
+! OsmoBTS (0.4.0.446-e0fb) configuration saved from vty
+!!
+!
+log gsmtap 172.18.13.10
+ logging level set-all debug
+!
+log file /data/osmo-bts.log
+ logging filter all 1
+ logging print category 1
+ logging timestamp 1
+ logging print extended-timestamp 1
+ logging level rsl info
+ logging level oml info
+ logging level rll notice
+ logging level rr notice
+ logging level meas info
+ logging level pag info
+ logging level l1c info
+ logging level l1p notice
+ logging level dsp info
+ logging level pcu debug
+ logging level ho notice
+ logging level trx info
+ logging level loop notice
+ logging level abis notice
+ logging level rtp notice
+ logging level sum notice
+ logging level lglobal notice
+ logging level llapd notice
+ logging level linp notice
+ logging level lmux notice
+ logging level lmi notice
+ logging level lmib debug
+ logging level lsms notice
+ logging level lctrl notice
+ logging level lgtp notice
+ logging level lstats notice
+ logging level lgsup notice
+ logging level loap notice
+ logging level lss7 notice
+ logging level lsccp notice
+ logging level lsua notice
+ logging level lm3ua notice
+!
+line vty
+ no login
+ bind 0.0.0.0
+!
+e1_input
+ e1_line 0 driver ipa
+ e1_line 0 port 0
+ no e1_line 0 keepalive
+phy 0
+ !virtual-um ms-multicast-group 239.193.23.1
+ !virtual-um bts-multicast-group 239.193.23.2
+ instance 0
+bts 0
+ band DCS1800
+ ipa unit-id 1234 0
+ oml remote-ip 172.18.13.11
+ rtp jitter-buffer 100
+ paging queue-size 200
+ paging lifetime 0
+ uplink-power-target -75
+ gsmtap-sapi rach
+ gsmtap-sapi agch
+ gsmtap-sapi bcch
+ gsmtap-sapi pch
+ gsmtap-sapi sdcch
+ gsmtap-sapi sacch
+ min-qual-rach 50
+ min-qual-norm -5
+ pcu-socket /data/unix/pcu_bts
+ trx 0
+ power-ramp max-initial 0 mdBm
+ power-ramp step-size 2000 mdB
+ power-ramp step-interval 1
+ ms-power-control dsp
+ phy 0 instance 0
+ctrl
+ bind 172.18.13.20