1#!/bin/sh 2 3SRCDIR="${srcdir-`pwd`}" 4BUILDDIR="${top_builddir-`pwd`}" 5 6test="TEST" 7 8if [ -n "$1" ] ; then 9 test="$1" 10fi 11 12test -d "${BUILDDIR}/test" || mkdir "${BUILDDIR}/test/" 13 14"${BUILDDIR}/intel-gen4asm" -o "${BUILDDIR}/${test}.out" "$SRCDIR/${test}.g4a" 15if cmp "${BUILDDIR}/${test}.out" "${SRCDIR}/${test}.expected" 2> /dev/null; then : ; else 16 echo "Output comparison for ${test}" 17 diff -u "${SRCDIR}/${test}.expected" "${test}.out" 18 exit 1; 19fi 20