diff options
Diffstat (limited to 'runtests')
-rwxr-xr-x | runtests | 29 |
1 files changed, 22 insertions, 7 deletions
@@ -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 |