ttcn3-{sgsn,ggsn}-test: set OSMO_SUT_{HOST,PORT}
This enables the test suite to obtain talloc reports between the test case executions, which get stored together with the PCAP files. Change-Id: I61fef7763e6445c231ff2664036e243a9ac96ff6 Related: Icd4c2d80db934535d499598282ed9416d8088163
This commit is contained in:
parent
7fc251e5bf
commit
709a30b536
|
@ -46,12 +46,14 @@ if [ "$KERNEL_TEST" = "1" ]; then
|
||||||
-v "$KERNEL_TEST_DIR:/kernel-test:ro"
|
-v "$KERNEL_TEST_DIR:/kernel-test:ro"
|
||||||
-v "$CACHE_DIR:/cache"
|
-v "$CACHE_DIR:/cache"
|
||||||
"
|
"
|
||||||
|
OSMO_SUT_HOST="172.18.$SUBNET.200"
|
||||||
else
|
else
|
||||||
cp osmo-ggsn.cfg $VOL_BASE_DIR/ggsn/
|
cp osmo-ggsn.cfg $VOL_BASE_DIR/ggsn/
|
||||||
|
|
||||||
GGSN_DOCKER_ARGS="
|
GGSN_DOCKER_ARGS="
|
||||||
$(docker_network_params $SUBNET 201)
|
$(docker_network_params $SUBNET 201)
|
||||||
"
|
"
|
||||||
|
OSMO_SUT_HOST="172.18.$SUBNET.201"
|
||||||
fi
|
fi
|
||||||
docker run --cap-add=NET_ADMIN \
|
docker run --cap-add=NET_ADMIN \
|
||||||
--device /dev/net/tun:/dev/net/tun \
|
--device /dev/net/tun:/dev/net/tun \
|
||||||
|
@ -74,6 +76,8 @@ docker run --rm \
|
||||||
--ulimit core=-1 \
|
--ulimit core=-1 \
|
||||||
-v $VOL_BASE_DIR/ggsn-tester:/data \
|
-v $VOL_BASE_DIR/ggsn-tester:/data \
|
||||||
-e "TTCN3_PCAP_PATH=/data" \
|
-e "TTCN3_PCAP_PATH=/data" \
|
||||||
|
-e "OSMO_SUT_HOST=$OSMO_SUT_HOST" \
|
||||||
|
-e "OSMO_SUT_PORT=4260" \
|
||||||
--name ${BUILD_TAG}-ggsn-test \
|
--name ${BUILD_TAG}-ggsn-test \
|
||||||
$DOCKER_ARGS \
|
$DOCKER_ARGS \
|
||||||
$REPO_USER/ttcn3-ggsn-test
|
$REPO_USER/ttcn3-ggsn-test
|
||||||
|
|
|
@ -49,6 +49,8 @@ docker run --rm \
|
||||||
$(docker_network_params $SUBNET 103) \
|
$(docker_network_params $SUBNET 103) \
|
||||||
--ulimit core=-1 \
|
--ulimit core=-1 \
|
||||||
-e "TTCN3_PCAP_PATH=/data" \
|
-e "TTCN3_PCAP_PATH=/data" \
|
||||||
|
-e "OSMO_SUT_HOST=172.18.$SUBNET.10" \
|
||||||
|
-e "OSMO_SUT_PORT=4245" \
|
||||||
-v $VOL_BASE_DIR/sgsn-tester:/data \
|
-v $VOL_BASE_DIR/sgsn-tester:/data \
|
||||||
--name ${BUILD_TAG}-ttcn3-sgsn-test \
|
--name ${BUILD_TAG}-ttcn3-sgsn-test \
|
||||||
$DOCKER_ARGS \
|
$DOCKER_ARGS \
|
||||||
|
|
Loading…
Reference in New Issue