This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/7386
ttcn3-bsc-test: add -h (hack) option to jenkins.sh
If calling jenkins.sh with the -h option, bind external osmo-ttcn3-hacks
sources into the docker containers and start a shell instead of the tests:
jenkins.sh -h ~/src/osmo-ttcn3-hacks
Change-Id: Ibf2c60efb5c18c4fd037ebf3cdf1949984e763bb
---
M ttcn3-bsc-test/jenkins.sh
1 file changed, 16 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/86/7386/1
diff --git a/ttcn3-bsc-test/jenkins.sh b/ttcn3-bsc-test/jenkins.sh
index 160d5a6..aa504de 100755
--- a/ttcn3-bsc-test/jenkins.sh
+++ b/ttcn3-bsc-test/jenkins.sh
@@ -2,6 +2,18 @@
. ../jenkins-common.sh
+ADD_TTCN_RUN_OPTS=""
+ADD_TTCN_RUN_CMD=""
+ADD_TTCN_VOLUMES=""
+
+if [ "x$1" = "x-h" ]; then
+ ADD_TTCN_RUN_OPTS="-ti"
+ ADD_TTCN_RUN_CMD="bash"
+ if [ -d "$2" ]; then
+ ADD_TTCN_VOLUMES="$ADD_TTCN_VOLUMES -v $2:/osmo-ttcn3-hacks"
+ fi
+fi
+
mkdir $VOL_BASE_DIR/bsc-tester
cp BSC_Tests.cfg $VOL_BASE_DIR/bsc-tester/
@@ -40,8 +52,11 @@
--network $NET_NAME --ip 172.18.2.203 \
-e "TTCN3_PCAP_PATH=/data" \
-v $VOL_BASE_DIR/bsc-tester:/data \
+ $ADD_TTCN_VOLUMES \
--name ${BUILD_TAG}-ttcn3-bsc-test \
- $REPO_USER/ttcn3-bsc-test
+ $ADD_TTCN_RUN_OPTS \
+ $REPO_USER/ttcn3-bsc-test \
+ $ADD_TTCN_RUN_CMD
echo Stopping containers
for i in `seq 0 2`; do
--
To view, visit https://gerrit.osmocom.org/7386
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibf2c60efb5c18c4fd037ebf3cdf1949984e763bb
Gerrit-PatchSet: 1
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>