Add more unary operation tests.

This commit is contained in:
Eric Anholt
2006-08-31 14:46:28 -07:00
committed by Damien Lespiau
parent e3cc73bec4
commit 863cd6a5b7
19 changed files with 58 additions and 5 deletions
+5 -3
View File
@@ -1,9 +1,11 @@
#!/bin/sh
TESTDIR=${srcdir-`pwd`}
SRCDIR=${srcdir-`pwd`}
BUILDDIR=${top_builddir-`pwd`}
${BUILDDIR}/src/gen4asm -o TEST.out $TESTDIR/TEST.g4a
if cmp TEST.out ${TESTDIR}/TEST.expected; then : ; else
${BUILDDIR}/src/gen4asm -o TEST.out $SRCDIR/TEST.g4a
if cmp TEST.out ${SRCDIR}/TEST.expected 2> /dev/null; then : ; else
echo "Output comparison for TEST"
diff -u ${SRCDIR}/TEST.expected TEST.out
exit 1;
fi