PCU: Differentiate between tests with classic and SNS Gb dialects

OsmoPCU needs to have the gb-dialect parameter configured right from
startup.  This means we'll split the ttcn3-pcu-test into two suites,
similarly to how we deal with AoIP / SCCPlite in the ttcn3-bsc-test.

Change-Id: I6e844f9ac4b87e801661fb1a1bdd25a15148f474
This commit is contained in:
Harald Welte 2019-02-28 21:14:54 +01:00
parent ee386a6731
commit c05330e8b4
6 changed files with 82 additions and 1 deletions

View File

@ -0,0 +1 @@
../ttcn3-pcu-test/jenkins-sns.sh

1
ttcn3-pcu-test-sns/sns Symbolic link
View File

@ -0,0 +1 @@
../ttcn3-pcu-test/sns

View File

@ -21,4 +21,3 @@ PCU_Tests.mp_nsconfig := {
[EXECUTE]
PCU_Tests_RAW.control
PCU_Tests_RAW_SNS.control

46
ttcn3-pcu-test/jenkins-sns.sh Executable file
View File

@ -0,0 +1,46 @@
#!/bin/sh
. ../jenkins-common.sh
IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
docker_images_require \
"debian-jessie-build" \
"osmo-pcu-$IMAGE_SUFFIX" \
"debian-stretch-titan" \
"ttcn3-pcu-test"
network_create 172.18.14.0/24
mkdir $VOL_BASE_DIR/pcu-tester
mkdir $VOL_BASE_DIR/pcu-tester/unix
cp sns/PCU_Tests.cfg $VOL_BASE_DIR/pcu-tester/
mkdir $VOL_BASE_DIR/pcu
mkdir $VOL_BASE_DIR/pcu/unix
cp sns/osmo-pcu.cfg $VOL_BASE_DIR/pcu/
mkdir $VOL_BASE_DIR/unix
echo Starting container with PCU
docker run --rm \
--network $NET_NAME --ip 172.18.14.101 \
-v $VOL_BASE_DIR/pcu:/data \
-v $VOL_BASE_DIR/unix:/data/unix \
--name ${BUILD_TAG}-pcu-sns -d \
$REPO_USER/osmo-pcu-$IMAGE_SUFFIX \
/usr/local/bin/respawn.sh osmo-pcu -c /data/osmo-pcu.cfg
echo Starting container with PCU testsuite
docker run --rm \
--network $NET_NAME --ip 172.18.14.10 \
-e "TTCN3_PCAP_PATH=/data" \
-v $VOL_BASE_DIR/pcu-tester:/data \
-v $VOL_BASE_DIR/unix:/data/unix \
--name ${BUILD_TAG}-ttcn3-pcu-test-sns \
$REPO_USER/ttcn3-pcu-test
echo Stopping containers
docker container kill ${BUILD_TAG}-pcu-sns
network_remove
rm -rf $VOL_BASE_DIR/unix
collect_logs

View File

@ -0,0 +1,23 @@
[ORDERED_INCLUDE]
"/osmo-ttcn3-hacks/Common.cfg"
"/osmo-ttcn3-hacks/pcu/PCU_Tests.default"
[LOGGING]
[TESTPORT_PARAMETERS]
[MODULE_PARAMETERS]
PCU_Tests_RAW.mp_pcu_sock_path := "/data/unix/pcu_bts"
PCU_Tests.mp_nsconfig := {
local_ip := "172.18.14.10",
local_udp_port := 23000,
remote_ip := "172.18.14.101",
remote_udp_port := 23000,
nsvci := 1234,
nsei := 1234
}
[MAIN_CONTROLLER]
[EXECUTE]
PCU_Tests_RAW_SNS.control

View File

@ -0,0 +1,11 @@
line vty
no login
bind 0.0.0.0
pcu
flow-control-interval 10
cs 2
alloc-algorithm dynamic
alpha 0
gamma 0
pcu-socket /data/unix/pcu_bts
gb-dialect ip-sns