blob: 6bb4c688a6188670a505ed57ba4501887fcbe22d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/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" = "cons" ] ; then
cppawk=./cppawk ./testsuite.awk testcases-cons
cppawk="./cppawk --awk=mawk" ./testsuite.awk testcases-cons
fi
|