mirror of
https://github.com/ivanilves/xiringuito.git
synced 2025-05-28 13:00:17 -07:00
Case: run without route discovery
This commit is contained in:
parent
c0b6c9c09d
commit
387889a0df
@ -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:
|
||||
|
@ -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}
|
Loading…
x
Reference in New Issue
Block a user