Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- validation/test-suite | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/validation/test-suite b/validation/test-suite index 5821f4428..b5bd937d5 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -434,7 +434,10 @@ do_test_suite() ## do_format_help() { -echo "Usage: $prog_name [--]format file [name [cmd]]" +echo "Usage: $prog_name [option(s)] [--]format file [name [cmd]]" +echo +echo "options:" +echo " -f write a test known to fail" echo echo "argument(s):" echo " file file containing the test case(s)" @@ -443,11 +446,15 @@ echo " cmd command to be used (defaults to 'sparse \$f } ## -# do_format(file[, name[, cmd]]) - helps a test writer to format test-suite tags +# do_format([options,] file[, name[, cmd]]) - helps a test writer to format test-suite tags do_format() { + fail=0 + while [ $# -gt 1 ] ; do case "$1" in + -f) + fail=1 ;; help|-*) do_format_help return 0 @@ -480,6 +487,9 @@ _EOF if [ "$fexit_value" -ne "0" ]; then echo " * check-exit-value: $fexit_value" fi + if [ $fail != 0 ]; then + echo " * check-known-to-fail" + fi for stream in output error; do if [ -s "$file.$stream.got" ]; then echo " *" -- 2.14.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html