aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-11-20 16:07:45 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-12-08 13:55:21 +0100
commit54f49cdcd8c48d8abd899e20e8573df2c025708f (patch)
treef50088102cd2cc34100291dadad05898b6af7861 /validation
parent4f960ec3f4d5d3f6b9a969806837484a0a93fe42 (diff)
downloadsparse-dev-54f49cdcd8c48d8abd899e20e8573df2c025708f.tar.gz
testsuite: move no-arg out of the getopt loop
This is a preparatory step to allow to run only a part of the testsuite (a subdir). Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
-rwxr-xr-xvalidation/test-suite11
1 files changed, 5 insertions, 6 deletions
diff --git a/validation/test-suite b/validation/test-suite
index 72bee9dc..410190bd 100755
--- a/validation/test-suite
+++ b/validation/test-suite
@@ -505,7 +505,7 @@ _EOF
return 0
}
-while true; do
+while [ "$#" -gt "0" ]; do
case "$1" in
-a|--abort)
abort=1
@@ -517,11 +517,6 @@ while true; do
shift
continue
;;
-
- '')
- tests_list=`find . -name '*.c' | sed -e 's#^\./\(.*\)#\1#' | sort`
- break
- ;;
*.c)
tests_list="$@"
break
@@ -550,6 +545,10 @@ while true; do
break
done
+if [ -z "$tests_list" ]; then
+ tests_list=`find . -name '*.c' | sed -e 's#^\./\(.*\)#\1#' | sort`
+fi
+
do_test_suite
exit $failed