aboutsummaryrefslogtreecommitdiff
path: root/tests/t_client.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/t_client.sh.in')
-rwxr-xr-xtests/t_client.sh.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/t_client.sh.in b/tests/t_client.sh.in
index 99e6f9c..f6654dd 100755
--- a/tests/t_client.sh.in
+++ b/tests/t_client.sh.in
@@ -291,12 +291,14 @@ run_ping_tests()
# main test loop
# ----------------------------------------------------------
SUMMARY_OK=
+SUMMARY_SKIP=
SUMMARY_FAIL=
for SUF in $TEST_RUN_LIST
do
# get config variables
eval test_prep=\"\$PREPARE_$SUF\"
+ eval test_check_skip=\"\$CHECK_SKIP_$SUF\"
eval test_postinit=\"\$POSTINIT_CMD_$SUF\"
eval test_cleanup=\"\$CLEANUP_$SUF\"
eval test_run_title=\"\$RUN_TITLE_$SUF\"
@@ -318,6 +320,16 @@ do
output_start "### test run $SUF: '$test_run_title' ###"
fail_count=0
+ if [ -n "$test_check_skip" ]; then
+ output "check whether we need to skip: '$test_check_skip'"
+ if eval $test_check_skip; then :
+ else
+ output "skip check failed, SKIP test $SUF."
+ SUMMARY_SKIP="$SUMMARY_SKIP $SUF"
+ echo -e "$outbuf" ; continue
+ fi
+ fi
+
if [ -n "$test_prep" ]; then
output "running preparation: '$test_prep'"
eval $test_prep
@@ -455,8 +467,10 @@ do
done
if [ -z "$SUMMARY_OK" ] ; then SUMMARY_OK=" none"; fi
+if [ -z "$SUMMARY_SKIP" ] ; then SUMMARY_SKIP=" none"; fi
if [ -z "$SUMMARY_FAIL" ] ; then SUMMARY_FAIL=" none"; fi
echo "Test sets succeeded:$SUMMARY_OK."
+echo "Test sets skipped:$SUMMARY_SKIP."
echo "Test sets failed:$SUMMARY_FAIL."
# remove trap handler