test-lib: Make case skipping possible

This commit is contained in:
Martin Kletzander 2013-09-12 12:12:23 +02:00
parent 935e7d02cf
commit 38716772d0
1 changed files with 18 additions and 0 deletions

View File

@ -41,6 +41,24 @@ test_intro()
fi
}
test_skip_case()
{
counter=$1
name=$2
reason=$3
if test "$verbose" = "0" ; then
mod=`expr \( $counter + 40 - 1 \) % 40`
if test "$counter" != 1 && test "$mod" = 0 ; then
printf " %-3d\n" `expr $counter - 1`
printf " "
fi
printf "_"
else
printf "%3d) %-60s ... SKIP\n" "$counter" "$name"
printf " case skipped: %s\n" "$reason"
fi
}
test_result()
{
counter=$1