From b5b6163332977297617990863564659d49d3e086 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Thu, 26 Dec 2013 21:53:50 +0100 Subject: Fuck yeah all tests pass. --- src/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test.sh') diff --git a/src/test.sh b/src/test.sh index 4f84fd4..eaec94a 100755 --- a/src/test.sh +++ b/src/test.sh @@ -65,8 +65,8 @@ echo "Testing EXEC/" for a in ../tests/exec/*.cpp; do if ./minic++ $a; then - spim -f ../tests/exec/`basename -s .cpp $a`.s | tail -n +6 > /tmp/spim_out.txt - if diff /tmp/spim_out.txt ../tests/exec/`basename -s .cpp $a`.out > /dev/null + mars-mips nc se1 ../tests/exec/`basename -s .cpp $a`.s > /tmp/mips_out.txt + if diff -B /tmp/mips_out.txt ../tests/exec/`basename -s .cpp $a`.out > /dev/null then echo "OK $a" else echo "FAIL $a" fi -- cgit v1.2.3