~boringcactus/crowbar-qbe

1dbd3fd0b2616f96648603d9f76143c1ab383d6c — Melody Horn 3 years ago 6d10754 main
make debugging easier
1 files changed, 7 insertions(+), 2 deletions(-)

M tools/test.sh
M tools/test.sh => tools/test.sh +7 -2
@@ 4,7 4,12 @@ dir=`cd $(dirname "$0"); pwd`
bin=${bin:-$dir/../obj/qbe}
binref=$dir/../obj/qbe.ref

tmp=/tmp/qbe.zzzz
if test "$2" == "debug"
then
	tmp=$1
else
	tmp=/tmp/qbe.zzzz
fi

drv=$tmp.c
asm=$tmp.s


@@ 137,7 142,7 @@ once() {

	if test -s $out
	then
		$qemu $exe a b c | diff - $out
		$qemu $exe a b c | diff -a - $out
		ret=$?
		reason="output"
	else