aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-04-16 08:28:58 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-04-16 08:28:58 -0700
commitab705c920ca68471f7664181feee534220fe40c4 (patch)
treefe985da56bf505906d4bf95278985301a0964dc2
parent8beafd5dc2b663c26502816e3f72adb3de4655ff (diff)
downloadcppawk-ab705c920ca68471f7664181feee534220fe40c4.tar.gz
cppawk-ab705c920ca68471f7664181feee534220fe40c4.tar.bz2
cppawk-ab705c920ca68471f7664181feee534220fe40c4.zip
testsuite: add mechanism for skipping specific tests.
-rwxr-xr-xtestsuite.awk6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite.awk b/testsuite.awk
index 27e3561..6ece65b 100755
--- a/testsuite.awk
+++ b/testsuite.awk
@@ -3,11 +3,17 @@
BEGIN {
RS = "--\n"
FS = ":\n"
+ split(skip, skiparray, /,/)
+ for (i in skiparray)
+ skipdict[skiparray[i]]
}
function runtest(id, code, output,
failed)
{
+ if (id in skipdict)
+ return
+
print code > "script.sh"
print output > "output"