Damien Lespiau 497814f2f2 assembler: Revert "Automatically run all test cases."
The tests where supposed to be run through make check, not running the
"run-test.sh" standalone. So revert that patch to have make check work
as intended.

This reverts commit 6983eebf47f37def8f2315d5af1800b81644f240.
2013-08-20 14:52:05 +01:00

14 lines
277 B
Bash

#!/bin/sh
DIR="$( cd -P "$( dirname "$0" )" && pwd )"
${DIR}/../src/intel-gen4asm -o TEST.out ${DIR}/TEST.g4a
if cmp TEST.out ${DIR}/TEST.expected 2> /dev/null;
then
echo "Good";
else
echo "Output comparison for TEST"
diff -u ${DIR}/TEST.expected TEST.out
exit 1;
fi