aboutsummaryrefslogtreecommitdiffstats
path: root/runtests
diff options
context:
space:
mode:
Diffstat (limited to 'runtests')
-rwxr-xr-xruntests29
1 files changed, 22 insertions, 7 deletions
diff --git a/runtests b/runtests
index f7f8991..6bb4c68 100755
--- a/runtests
+++ b/runtests
@@ -1,13 +1,28 @@
#!/bin/sh
trap 'rm -f output script.sh' EXIT INT TERM
-cppawk=./cppawk ./testsuite.awk testcases
-cppawk="./cppawk --nobash" ./testsuite.awk testcases
+suite=$1
-cppawk=./cppawk ./testsuite.awk testcases-case
-cppawk="./cppawk --awk=mawk" ./testsuite.awk testcases-case
+if [ -z "$suite" ] ; then
+ cppawk=./cppawk ./testsuite.awk testcases
+ cppawk="./cppawk --nobash" ./testsuite.awk testcases
+fi
-cppawk=./cppawk ./testsuite.awk testcases-narg
+if [ -z "$suite" -o "$suite" = "case" ] ; then
+ cppawk=./cppawk ./testsuite.awk testcases-case
+ cppawk="./cppawk --awk=mawk" ./testsuite.awk testcases-case
+fi
-cppawk=./cppawk ./testsuite.awk testcases-iter
-cppawk="./cppawk --awk=mawk" ./testsuite.awk testcases-iter
+if [ -z "$suite" -o "$suite" = "narg" ] ; then
+ cppawk=./cppawk ./testsuite.awk testcases-narg
+fi
+
+if [ -z "$suite" -o "$suite" = "iter" ] ; then
+ cppawk=./cppawk ./testsuite.awk testcases-iter
+ cppawk="./cppawk --awk=mawk" ./testsuite.awk testcases-iter
+fi
+
+if [ -z "$suite" -o "$suite" = "cons" ] ; then
+ cppawk=./cppawk ./testsuite.awk testcases-cons
+ cppawk="./cppawk --awk=mawk" ./testsuite.awk testcases-cons
+fi