aboutsummaryrefslogtreecommitdiffstats
path: root/runtests
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-04-04 21:08:50 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-04-04 21:08:50 -0700
commitf0f66890cc79338265ccd384288b73080ff2c939 (patch)
tree9c4496cd9be50f59b7940a74ba6e9cac4bcf744f /runtests
parentfc1c70004db5ebf8e4124ee1bc655ad0358e8a6f (diff)
downloadcppawk-f0f66890cc79338265ccd384288b73080ff2c939.tar.gz
cppawk-f0f66890cc79338265ccd384288b73080ff2c939.tar.bz2
cppawk-f0f66890cc79338265ccd384288b73080ff2c939.zip
start test cases for <cons.h> material.
Small documentation tweak. Numerous bugfixes as a result of testing: null, endp, stringp, symbolp, box, unbox, cdr, equal all found to have some issues.
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