Case: run without route discovery

This commit is contained in:
Ivan Ilves 2017-05-27 09:45:58 +02:00
parent c0b6c9c09d
commit 387889a0df
2 changed files with 27 additions and 0 deletions

View File

@ -26,6 +26,7 @@ script:
- testing/run_integration_case.sh run_with_reconnection
- testing/run_integration_case.sh run_without_reconnection
- testing/run_integration_case.sh run_with_route_discovery
- testing/run_integration_case.sh run_without_route_discovery
branches:
only:

View File

@ -0,0 +1,26 @@
INIT_DELAY=15
DOWN_DELAY=5
POST_DELAY=5
if [[ -f ${WD}/discover-routes ]]; then
mv ${WD}/discover-routes /tmp/discover-routes.orig
fi
${XIRI_EXE} -f 1 -X ${SSH_USER}@${REMOTE_IP} &
XIRI_PID=${!}; sleep ${INIT_DELAY}
warn "$(ip route | grep 10.42.42.42)"
if [[ -n "$(ip route | grep 10.42.42.42)" ]]; then
complain "Route added by (non-existing) route discovery: 10.42.42.42/32"
exit 1
fi
if [[ -f /tmp/discover-routes.orig ]]; then
mv /tmp/discover-routes.orig ${WD}/discover-routes
fi
set +e
kill_reliably ${XIRI_PID} ${DOWN_DELAY}
set -e
sleep ${POST_DELAY}