Introduce Docker image for ttcn-hnodeb-test

Change-Id: I191b9a29c75d0a1f0bc38d4e29facfc45826cd31
changes/59/26359/2
Pau Espin 1 year ago committed by pespin
parent dcf499203d
commit b7c430dd10
  1. 13
      ttcn3-hnodeb-test/Dockerfile
  2. 19
      ttcn3-hnodeb-test/HNB_Tests.cfg
  3. 3
      ttcn3-hnodeb-test/Makefile
  4. 41
      ttcn3-hnodeb-test/jenkins.sh
  5. 25
      ttcn3-hnodeb-test/osmo-hnodeb.cfg

@ -0,0 +1,13 @@
ARG REGISTRY
ARG USER
FROM $REGISTRY/$USER/debian-stretch-titan
ARG OSMO_TTCN3_BRANCH="master"
ADD http://git.osmocom.org/osmo-ttcn3-hacks/patch?h=$OSMO_TTCN3_BRANCH /tmp/commit
RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" hnodeb
VOLUME /data
COPY HNB_Tests.cfg /data/HNB_Tests.cfg
CMD ttcn3-docker-run hnodeb HNB_Tests

@ -0,0 +1,19 @@
[ORDERED_INCLUDE]
"/osmo-ttcn3-hacks/Common.cfg"
"/osmo-ttcn3-hacks/hnodeb/HNB_Tests.default"
[LOGGING]
*.JUnitLogger.testsuite_name := "HNB_Tests"
[TESTPORT_PARAMETERS]
*.HNBVTY.CTRL_HOSTNAME := "172.18.33.20";
*.STATSVTY.CTRL_HOSTNAME := "172.18.33.20";
[MODULE_PARAMETERS]
HNB_Tests.mp_hnodeb_ip := "172.18.33.20";
HNB_Tests.mp_hnbgw_iuh_ip := "172.18.33.203";
[MAIN_CONTROLLER]
[EXECUTE]
HNB_Tests.control

@ -0,0 +1,3 @@
RUN_ARGS?=--sysctl net.ipv6.conf.all.disable_ipv6=0 --rm --network sigtran --ip 172.18.33.202 -v ggsn-test-vol:/data
include ../make/Makefile

@ -0,0 +1,41 @@
#!/bin/sh
. ../jenkins-common.sh
IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
docker_images_require \
"osmo-hnodeb-$IMAGE_SUFFIX" \
"ttcn3-hnodeb-test"
set_clean_up_trap
set -e
mkdir $VOL_BASE_DIR/hnodeb-tester
cp HNB_Tests.cfg $VOL_BASE_DIR/hnodeb-tester/
mkdir $VOL_BASE_DIR/hnodeb
cp osmo-hnodeb.cfg $VOL_BASE_DIR/hnodeb/
SUBNET=33
network_create $SUBNET
echo Starting container with HNodeB
docker run --rm \
$(docker_network_params $SUBNET 20) \
--ulimit core=-1 \
-v $VOL_BASE_DIR/hnodeb:/data \
--name ${BUILD_TAG}-hnodeb -d \
$DOCKER_ARGS \
$REPO_USER/osmo-hnodeb-$IMAGE_SUFFIX
echo Starting container with HNodeB testsuite
docker run --rm \
$(docker_network_params $SUBNET 203) \
--ulimit core=-1 \
-e "TTCN3_PCAP_PATH=/data" \
-v $VOL_BASE_DIR/hnodeb-tester:/data \
--name ${BUILD_TAG}-ttcn3-hnodeb-test \
$DOCKER_ARGS \
$REPO_USER/ttcn3-hnodeb-test
echo Stopping containers
docker container kill ${BUILD_TAG}-hnodeb

@ -0,0 +1,25 @@
!
log gsmtap 172.18.33.203
logging level set-all debug
logging filter all 1
!
log stderr
logging filter all 1
logging color 1
logging print category 1
logging timestamp 1
logging print extended-timestamp 1
logging level set-all debug
!
line vty
no login
bind 172.18.33.20
!
hnodeb
cell_identity 1
location_area_code 2
routing_area_code 3
service_area_code 4
iuh
local-ip 172.18.33.20
remote-ip 172.18.33.203
Loading…
Cancel
Save