From 67f611fbef3cf16162867bdf83cb9c8a051dac4a Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Thu, 3 Mar 2016 11:55:13 -0500 Subject: testbed is now functional I would like to make sure some _ tests are passing, however I have to think of a nice way to grab debug output and compare it nicely. Some require NReg == 3, that is a pain in the ass. Maybe they can be changed to work for the full register set. --- lisc/test/go.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'lisc/test/go.sh') diff --git a/lisc/test/go.sh b/lisc/test/go.sh index 7082db0..7326ecc 100755 --- a/lisc/test/go.sh +++ b/lisc/test/go.sh @@ -1,8 +1,5 @@ #!/bin/sh -QBE=./lisc -CC=cc - TMP=/tmp/qbe.zzzz DRV=$TMP.c @@ -44,7 +41,7 @@ once() { printf "$T... " - if ! $QBE $T -o $ASM 2> /dev/null + if ! ./lisc $T -o $ASM 2> /dev/null then echo "[qbe fail]" return 1 @@ -60,7 +57,7 @@ once() { LNK="$ASM" fi - if ! $CC -o $BIN $LNK + if ! cc -o $BIN $LNK then echo "[cc fail]" return 1 @@ -68,11 +65,11 @@ once() { if test -s $OUT then - $BIN | diff - $OUT > /dev/null + $BIN a b c | diff - $OUT > /dev/null RET=$? REASON="output" else - $BIN + $BIN a b c RET=$? REASON="return" fi @@ -92,7 +89,7 @@ once() { case $1 in "all") F=0 - for T in test/* + for T in test/[!_]*.ssa do once $T F=`expr $F + $?` -- cgit 1.4.1