aboutsummaryrefslogtreecommitdiffstats
path: root/ttcn3-stp-test/jenkins.sh
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-03-18 15:37:59 +0100
committerosmith <osmith@sysmocom.de>2020-05-06 06:22:12 +0000
commitf48c09d3bc528d3531be72bf472a204a8fa6e3f4 (patch)
treeee2f58beeecb312f6e67ef5fa82737f04ad12d4c /ttcn3-stp-test/jenkins.sh
parent27ab2a5d52a37621bce4d8c3cdab759036ff2124 (diff)
ttcn3-*-test/jenkins*.sh: add $DOCKER_ARGS
Allow to pass options to each "docker run" line in the various jenkins.sh scripts. I'm using this to run the testsuites and Osmocom components in docker with the same configurations as jenkins, but with Osmocom and testsuite binaries built outside and mounted into the containers: DOCKER_ARGS="-v /usr/local:/usr/local:ro -v $hacks:/osmo-ttcn3-hacks:ro" This allows very short test cycles without a second set of configs. The full script that makes use of this feature is in osmo-dev.git, ttcn3/ttcn3.sh. Change-Id: I8d1f78aee926f8f6ec0b704e16639bc83f525816
Diffstat (limited to 'ttcn3-stp-test/jenkins.sh')
-rwxr-xr-xttcn3-stp-test/jenkins.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ttcn3-stp-test/jenkins.sh b/ttcn3-stp-test/jenkins.sh
index 7bb0337..bc2d5af 100755
--- a/ttcn3-stp-test/jenkins.sh
+++ b/ttcn3-stp-test/jenkins.sh
@@ -21,6 +21,7 @@ docker run --rm \
--network $NET_NAME --ip 172.18.19.200 \
-v $VOL_BASE_DIR/stp:/data \
--name ${BUILD_TAG}-stp -d \
+ $DOCKER_ARGS \
$REPO_USER/osmo-stp-$IMAGE_SUFFIX
echo Starting container with STP testsuite
@@ -29,6 +30,7 @@ docker run --rm \
-e "TTCN3_PCAP_PATH=/data" \
-v $VOL_BASE_DIR/stp-tester:/data \
--name ${BUILD_TAG}-ttcn3-stp-test \
+ $DOCKER_ARGS \
$REPO_USER/ttcn3-stp-test
docker container kill ${BUILD_TAG}-stp