diff options
Diffstat (limited to 'validation/test-suite')
| -rwxr-xr-x | validation/test-suite | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/validation/test-suite b/validation/test-suite index 9e30ed93..5f63a23b 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -72,6 +72,23 @@ EOT } ## +# verbose(string) - prints string if we are in verbose mode +verbose() +{ + [ "$V" -eq "1" ] && echo " $1" + return 0 +} + +## +# error(string[, die]) - prints an error and exits with value die if given +error() +{ + [ "$quiet" -ne 1 ] && echo "error: $1" + [ -n "$2" ] && exit $2 + return 0 +} + +## # helper for has_(each|none)_patterns() has_patterns() { @@ -132,23 +149,6 @@ nbr_patterns() return $? } -## -# verbose(string) - prints string if we are in verbose mode -verbose() -{ - [ "$V" -eq "1" ] && echo " $1" - return 0 -} - -## -# error(string[, die]) - prints an error and exits with value die if given -error() -{ - [ "$quiet" -ne 1 ] && echo "error: $1" - [ -n "$2" ] && exit $2 - return 0 -} - do_usage() { echo "$prog_name - a tiny automatic testing script" |
