aboutsummaryrefslogtreecommitdiffstats
path: root/sua-test/jenkins.sh
blob: 0f87b4e6f6e256a08d3c237db8840344e9ee2ac2 (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
#!/bin/sh

. ../jenkins-common.sh

mkdir $VOL_BASE_DIR/sua-tester
cp sua-param-testtool-sgp.scm some-sua-sgp-tests.txt $VOL_BASE_DIR/sua-tester/

mkdir $VOL_BASE_DIR/stp
cp osmo-stp.cfg $VOL_BASE_DIR/stp/

network_create 172.18.6.0/24

# start container with STP in background
docker run	--rm \
		--sysctl net.ipv6.conf.all.disable_ipv6=0 \
		--network $NET_NAME --ip 172.18.6.200 \
		-v $VOL_BASE_DIR/stp:/data \
		--name ${BUILD_TAG}-stp \
		-d $REPO_USER/osmo-stp-master

# start docker container with tests
docker run	--rm \
		--network $NET_NAME --ip 172.18.6.3 \
		-v $VOL_BASE_DIR/sua-tester:/data \
		--name ${BUILD_TAG}-sua-test \
		$REPO_USER/sua-test > $VOL_BASE_DIR/junit-xml-sua.log

docker container stop -t 1 ${BUILD_TAG}-stp

network_remove
collect_logs