summaryrefslogtreecommitdiff
path: root/assembler/test/run-test.sh
blob: f5e1a8fb9bd3dd20c8e144b4692d10e34a658f36 (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