Damien Lespiau 63720a4f86 assembler: Revert "Fix missing environment variables problem in test/run-test.sh"
Same as:

  commit 497814f2f2828efdc5bdd787ebc490d5083f61b8
  Author: Damien Lespiau <damien.lespiau@intel.com>
  Date:   Tue Aug 20 14:52:05 2013 +0100

      assembler: Revert "Automatically run all test cases."

make check will define srcdir and buildir variables for us.

This reverts commit 1c009349bc894bd195b5522540536898b0bee574.
2013-08-20 17:58:48 +01:00

12 lines
285 B
Bash

#!/bin/sh
SRCDIR=${srcdir-`pwd`}
BUILDDIR=${top_builddir-`pwd`}
${BUILDDIR}/src/intel-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