summaryrefslogtreecommitdiff
path: root/assembler/test/run-test.sh
blob: b06e1044587d8526c26107a5ad7b5b3b870741a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

SRCDIR=${srcdir-`pwd`}
BUILDDIR=${top_builddir-`pwd`}

test="TEST"

if [ -n "$1" ] ; then
	test="$1"
fi

test -d ${BUILDDIR}/test || mkdir ${BUILDDIR}/test/

${BUILDDIR}/intel-gen4asm -o ${BUILDDIR}/${test}.out $SRCDIR/${test}.g4a
if cmp ${BUILDDIR}/${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