summaryrefslogtreecommitdiff
path: root/openvpn/tests
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-07-21 01:11:36 +0200
committerArne Schwabe <arne@rfc2549.org>2012-07-21 01:11:36 +0200
commitb179d94eb3b87e46721e7060386ff1a2f64669a6 (patch)
tree2d602225b423424100d022085376a36a765d0ff9 /openvpn/tests
parent266db4b701d38f52fa246af45778bb2fcee9893c (diff)
Update openvpn to Version 2.3_alpha3
Diffstat (limited to 'openvpn/tests')
-rwxr-xr-xopenvpn/tests/t_client.sh.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/openvpn/tests/t_client.sh.in b/openvpn/tests/t_client.sh.in
index d58b8210..8c66033f 100755
--- a/openvpn/tests/t_client.sh.in
+++ b/openvpn/tests/t_client.sh.in
@@ -91,7 +91,7 @@ get_ifconfig_route()
echo "-- linux iproute2 --"
@IPROUTE@ addr show | grep -v valid_lft
@IPROUTE@ route show
- @IPROUTE@ -o -6 route show | grep -v ' cache' | sed -e 's/expires [0-9]*sec //'
+ @IPROUTE@ -o -6 route show | grep -v ' cache' | sed -e 's/expires [0-9]*sec//'
return
fi
@@ -203,6 +203,9 @@ run_ping_tests()
# ----------------------------------------------------------
# main test loop
# ----------------------------------------------------------
+SUMMARY_OK=
+SUMMARY_FAIL=
+
for SUF in $TEST_RUN_LIST
do
# get config variables
@@ -294,12 +297,19 @@ do
fi
if [ "$fail_count" = 0 ] ; then
echo -e "test run $SUF: all tests OK.\n"
+ SUMMARY_OK="$SUMMARY_OK $SUF"
else
echo -e "test run $SUF: $fail_count test failures. FAIL.\n";
+ SUMMARY_FAIL="$SUMMARY_FAIL $SUF"
exit_code=30
fi
done
+if [ -z "$SUMMARY_OK" ] ; then SUMMARY_OK=" none"; fi
+if [ -z "$SUMMARY_FAIL" ] ; then SUMMARY_FAIL=" none"; fi
+echo "Test sets succeded:$SUMMARY_OK."
+echo "Test sets failed:$SUMMARY_FAIL."
+
# remove trap handler
trap - 0 1 2 3 15
exit $exit_code