aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
Diffstat (limited to 'validation')
-rwxr-xr-xvalidation/test-suite32
1 files changed, 17 insertions, 15 deletions
diff --git a/validation/test-suite b/validation/test-suite
index 29093fab..59d79918 100755
--- a/validation/test-suite
+++ b/validation/test-suite
@@ -213,6 +213,23 @@ minmax_patterns()
return $?
}
+##
+# arg_file(filename) - checks if filename exists
+arg_file()
+{
+ [ -z "$1" ] && {
+ do_usage
+ exit 1
+ }
+ [ -e "$1" ] || {
+ error "Can't open file $1"
+ exit 1
+ }
+ return 0
+}
+
+
+##
do_usage()
{
echo "$prog_name - a tiny automatic testing script"
@@ -457,21 +474,6 @@ _EOF
return 0
}
-##
-# arg_file(filename) - checks if filename exists
-arg_file()
-{
- [ -z "$1" ] && {
- do_usage
- exit 1
- }
- [ -e "$1" ] || {
- error "Can't open file $1"
- exit 1
- }
- return 0
-}
-
while true; do
case "$1" in
-a|--abort)