#!/bin/sh trap 'rm -f output script.sh' EXIT INT TERM suite=$1 if [ -z "$suite" ] ; then cppawk=./cppawk ./testsuite.awk testcases cppawk="./cppawk --nobash" ./testsuite.awk testcases fi if [ -z "$suite" -o "$suite" = "case" ] ; then cppawk=./cppawk ./testsuite.awk testcases-case cppawk="./cppawk --awk=mawk" ./testsuite.awk testcases-case fi 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" = "varg" ] ; then cppawk=./cppawk ./testsuite.awk testcases-varg cppawk="./cppawk --awk=mawk" ./testsuite.awk testcases-varg fi if [ -z "$suite" -o "$suite" = "cons" ] ; then cppawk=./cppawk ./testsuite.awk testcases-cons cppawk="./cppawk --awk=mawk" ./testsuite.awk -v skip=37,38 testcases-cons fi if [ -z "$suite" -o "$suite" = "field" ] ; then cppawk=./cppawk ./testsuite.awk testcases-field cppawk="./cppawk --awk=mawk" ./testsuite.awk testcases-field fi