compiler

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

commit 07224cfd65b66af47614403abb395efc5220c230
parent 73feb55f7dbfe94a10c328fee995ea05f809889d
Author: Brian Swetland <swetland@frotz.net>
Date:   Mon,  6 Dec 2021 19:39:26 -0800

runtests2: save ast from each test run

Diffstat:
Mtest/runtest2.sh | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/runtest2.sh b/test/runtest2.sh @@ -7,13 +7,14 @@ src="$1" txt="$2" bin="${txt%.txt}.bin" lst="${txt%.txt}.lst" +ast="${txt%.txt}.ast" log="${txt%.txt}.log" msg="${txt%.txt}.msg" gold="${src%.src}.log" #echo "RUNTEST2: $src: compiling..." #echo bin/compiler2 -o "$bin" -l "$lst" "$src" "$msg" -if bin/compiler2 -o "$bin" -l "$lst" "$src" 2> "$msg"; then +if bin/compiler2 -o "$bin" -a "$ast" -l "$lst" "$src" 2> "$msg"; then # success! if [[ "$txt" == *"-err"* ]]; then # but this was an error test, so...