RFC: allow to set configuration and/or specific testcases

Allows to pass the configuration file and/or tests to
start-testsuite.sh.

This way a single test can be specified by the command line.

If this RFC gets accepted, I would convert all other Docker.files

Change-Id: I17e480321f1e7bfa287349f438ff6990e30f1114
This commit is contained in:
Alexander Couzens 2019-05-16 18:23:53 +02:00
parent 26565bb729
commit 73663b01f2
2 changed files with 11 additions and 5 deletions

View File

@ -27,8 +27,5 @@ RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
COPY SGSN_Tests.cfg /data/SGSN_Tests.cfg
CMD cd /data && \
/osmo-ttcn3-hacks/start-testsuite.sh /osmo-ttcn3-hacks/sgsn/SGSN_Tests; \
exit_code=$?; \
/osmo-ttcn3-hacks/log_merge.sh SGSN_Tests --rm; \
exit $exit_code
WORKDIR /data
ENTRYPOINT ["/osmo-ttcn3-hacks/start-testsuite.sh", "/osmo-ttcn3-hacks/sgsn/SGSN_Tests"]

View File

@ -32,6 +32,15 @@ docker run --rm \
-e "TTCN3_PCAP_PATH=/data" \
-v $VOL_BASE_DIR/sgsn-tester:/data \
--name ${BUILD_TAG}-ttcn3-sgsn-test \
$REPO_USER/ttcn3-sgsn-test $@
echo Starting container to merge logs
docker run --rm \
--network $NET_NAME --ip 172.18.8.103 \
-e "TTCN3_PCAP_PATH=/data" \
-v $VOL_BASE_DIR/sgsn-tester:/data \
--name ${BUILD_TAG}-ttcn3-sgsn-test-logmerge \
--entrypoint /osmo-ttcn3-hacks/log_merge.sh SGSN_Tests --rm \
$REPO_USER/ttcn3-sgsn-test
echo Stopping containers