diff options
Diffstat (limited to 'docs/history/15-o3/code/tests/runerr.sh')
| -rwxr-xr-x | docs/history/15-o3/code/tests/runerr.sh | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/docs/history/15-o3/code/tests/runerr.sh b/docs/history/15-o3/code/tests/runerr.sh deleted file mode 100755 index 23ea054..0000000 --- a/docs/history/15-o3/code/tests/runerr.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -# runs every .zc in a folder (tests/errors by default) and checks the compiler -# rejects it with the message on its first line: // expect: ... -vm=${1:-zy}; dir=${2:-$(dirname "$0")/errors}; pass=0; fail=0 -for f in "$dir"/*.zc; do - want=$(head -1 "$f" | sed 's#^// expect: ##') - got=$($vm < "$f" 2>&1 | head -1) - if [[ "$got" == *"$want"* ]]; then pass=$((pass+1)); else fail=$((fail+1)); echo "FAIL $(basename $f): got [$got]"; fi -done -echo "rejected: $pass passed, $fail failed" |
