#!/bin/sh trap 'rm -f output script.sh' EXIT INT TERM suite=$1 if [ -z "$suite" -o "$suite" = "base" ] ; then cppawk=./bin/cppawk ./testsuite.awk testcases cppawk="./bin/cppawk --nobash" ./testsuite.awk testcases fi if [ -z "$suite" -o "$suite" = "case" ] ; then cppawk=./bin/cppawk ./testsuite.awk testcases-case cppawk="./bin/cppawk --awk=mawk" ./testsuite.awk testcases-case fi if [ -z "$suite" -o "$suite" = "narg" ] ; then cppawk=./bin/cppawk ./testsuite.awk testcases-narg fi if [ -z "$suite" -o "$suite" = "iter" ] ; then cppawk=./bin/cppawk ./testsuite.awk testcases-iter cppawk="./bin/cppawk --awk=mawk" ./testsuite.awk -v skip=1,6,7,10 testcases-iter fi if [ -z "$suite" -o "$suite" = "varg" ] ; then cppawk=./bin/cppawk ./testsuite.awk testcases-varg cppawk="./bin/cppawk --awk=mawk" ./testsuite.awk testcases-varg fi if [ -z "$suite" -o "$suite" = "cons" ] ; then cppawk=./bin/cppawk ./testsuite.awk testcases-cons cppawk="./bin/cppawk --awk=mawk" ./testsuite.awk -v skip=37,38,39 testcases-cons fi if [ -z "$suite" -o "$suite" = "field" ] ; then cppawk=./bin/cppawk ./testsuite.awk testcases-field cppawk="./bin/cppawk --awk=mawk" ./testsuite.awk testcases-field fi if [ -z "$suite" -o "$suite" = "array" ] ; then cppawk=./bin/cppawk ./testsuite.awk testcases-array cppawk="./bin/cppawk --awk=mawk" ./testsuite.awk -v skip=5,6 testcases-array fi if [ -z "$suite" -o "$suite" = "quote" ] ; then cppawk=./bin/cppawk ./testsuite.awk testcases-quote cppawk="./bin/cppawk --awk=mawk" ./testsuite.awk testcases-quote fi