compiler

Unnamed Compiled Systems Language Project
git clone http://frotz.net/git/compiler.git
Log | Files | Refs

commit 3dfb885b7f62aaeea5f3088ffca138614aa409cd
parent 2e2e183226b153b59ba35530dcd3e70601397435
Author: Brian Swetland <swetland@frotz.net>
Date:   Wed,  8 Dec 2021 05:18:59 -0800

runtest: count compiler crash as a distinct failure type

Diffstat:
Mtest/runtest.sh | 5++++-
Mtest/runtest2.sh | 5++++-
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/test/runtest.sh b/test/runtest.sh @@ -35,8 +35,11 @@ if bin/compiler -o "$bin" -l "$lst" "$src" 2> "$msg"; then fi fi else + if [[ $? > 127 ]]; then + echo "RUNTEST: $src: FAIL: compiler crashed" + cat "$msg" # failure - if [[ "$txt" == *"-err"* ]]; then + elif [[ "$txt" == *"-err"* ]]; then # but this was an error test, so... echo "RUNTEST: $src: PASS" echo "PASS: $src" > "$txt" diff --git a/test/runtest2.sh b/test/runtest2.sh @@ -37,8 +37,11 @@ if bin/compiler2 -o "$bin" -a "$ast" -l "$lst" "$src" 2> "$msg"; then fi fi else + if [[ $? > 127 ]]; then + echo "RUNTEST2: $src: FAIL: compiler crashed" + cat "$msg" # failure - if [[ "$txt" == *"-err"* ]]; then + elif [[ "$txt" == *"-err"* ]]; then # but this was an error test, so... echo "RUNTEST2: $src: PASS" echo "PASS: $src" > "$txt"