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.
This commit is contained in:
Damien Lespiau 2013-08-20 17:58:48 +01:00
parent 497814f2f2
commit 63720a4f86

View File

@ -1,13 +1,11 @@
#!/bin/sh
DIR="$( cd -P "$( dirname "$0" )" && pwd )"
SRCDIR=${srcdir-`pwd`}
BUILDDIR=${top_builddir-`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
${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 ${DIR}/TEST.expected TEST.out
diff -u ${SRCDIR}/TEST.expected TEST.out
exit 1;
fi