From 175c63f317f710353a69790004631de23a086c80 Mon Sep 17 00:00:00 2001 From: Hannes Eder Date: Thu, 16 Jul 2009 21:51:49 +0000 Subject: test-suite: be more verbose on 'unhandled' and 'known to fail' tests Impact: - On an 'unhandled' test issue a warning, and - in case of a 'known to fail' test a info message. Signed-off-by: Hannes Eder Signed-off-by: Christopher Li --- validation/test-suite | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/validation/test-suite b/validation/test-suite index 1a35703..42f7bd7 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -89,6 +89,7 @@ do_test() # (it has to have a check-name key in it) get_value "check-name" $file if [ "$?" -eq 1 ]; then + echo "warning: test '$file' unhandled" unhandled_tests=`expr $unhandled_tests + 1` return 2 fi @@ -142,7 +143,10 @@ do_test() if [ "$test_failed" -eq "1" ]; then ko_tests=`expr $ko_tests + 1` get_tag "check-known-to-fail" $file - [ "$?" -eq "0" ] && known_ko_tests=`expr $known_ko_tests + 1` + if [ "$?" -eq "0" ]; then + echo "info: test '$file' is known to fail" + known_ko_tests=`expr $known_ko_tests + 1` + fi return 1 else ok_tests=`expr $ok_tests + 1` -- cgit v1.2.3-65-gdbad