blob: d54a31a3ebb7c42fff463cb82f0ec00d39272a5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/sh
. ../jenkins-common.sh
mkdir $VOL_BASE_DIR/bscnat-tester
cp BSCNAT_Tests.cfg $VOL_BASE_DIR/bscnat-tester/
mkdir $VOL_BASE_DIR/bscnat
cp osmo-bsc-nat.cfg $VOL_BASE_DIR/bscnat/
cp bscs.config $VOL_BASE_DIR/bscnat/
network_create 172.18.11.0/24
echo Starting container with BSCNAT
docker run --rm \
--network $NET_NAME --ip 172.18.11.20 \
-v $VOL_BASE_DIR/bscnat:/data \
--name ${BUILD_TAG}-bscnat -d \
$REPO_USER/osmo-nitb-master /usr/local/bin/osmo-bsc_nat -c /data/osmo-bsc-nat.cfg
echo Starting container with BSCNAT testsuite
docker run --rm \
--network $NET_NAME --ip 172.18.11.203 \
-e "TTCN3_PCAP_PATH=/data" \
-v $VOL_BASE_DIR/bscnat-tester:/data \
--name ${BUILD_TAG}-ttcn3-bscnat-test \
$REPO_USER/ttcn3-bscnat-test
echo Stopping containers
docker container kill ${BUILD_TAG}-bscnat
network_remove
collect_logs
|