compiler

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

commit e660e0c77e0b9b89bbde39585605dd806e5d79d7
parent 04a0a7a072cae14e6c272d8cb09e8d74eaf0a227
Author: Brian Swetland <swetland@frotz.net>
Date:   Fri, 13 Mar 2020 20:02:23 -0700

runtest: limit diff output

Makes verbose test failures less spammy.

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

diff --git a/test/runtest.sh b/test/runtest.sh @@ -21,11 +21,12 @@ if bin/compiler -o "$bin" -l "$lst" "$src" 2> "$msg"; then else #echo "RUNTEST: $src: running..." if bin/r5e "$bin" > "$log"; then - if diff "$log" "$gold"; then + if diff "$log" "$gold" >/dev/null ; then echo "RUNTEST: $src: PASS" echo "PASS: $src" > "$txt" else echo "RUNTEST: $src: FAIL: output differs from expected" + diff "$log" "$gold" | head echo "FAIL: %src" > "$txt" fi else