From aa3cedc03a1595a3941de408d1f2c5ed6b0830ac Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Fri, 22 Jan 2016 11:41:34 +0900 Subject: test: add graceful restart test --- test/scenario_test/run_all_tests.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/scenario_test/run_all_tests.sh') diff --git a/test/scenario_test/run_all_tests.sh b/test/scenario_test/run_all_tests.sh index b9d196dd..ec2dfa2e 100755 --- a/test/scenario_test/run_all_tests.sh +++ b/test/scenario_test/run_all_tests.sh @@ -71,6 +71,20 @@ PIDS=("${PIDS[@]}" $!) sudo -E PYTHONPATH=$GOBGP/test python route_server_as2_test.py --gobgp-image $GOBGP_IMAGE --test-prefix as2 -s -x --with-xunit --xunit-file=${WS}/nosetest_rs_as2.xml & PIDS=("${PIDS[@]}" $!) +# graceful restart test +sudo -E PYTHONPATH=$GOBGP/test python graceful_restart_test.py --gobgp-image $GOBGP_IMAGE --test-prefix gr -s -x --with-xunit --xunit-file=${WS}/nosetest_rs_gr.xml & +PIDS=("${PIDS[@]}" $!) + +for (( i = 0; i < ${#PIDS[@]}; ++i )) +do + wait ${PIDS[$i]} + if [ $? != 0 ]; then + exit 1 + fi +done + +PIDS=() + # route server malformed message test NUM=$(sudo -E PYTHONPATH=$GOBGP/test python route_server_malformed_test.py --test-index -1 -s 2> /dev/null | awk '/invalid/{print $NF}') PARALLEL_NUM=10 -- cgit v1.2.3