summaryrefslogtreecommitdiff
path: root/assembler/test/run-test.sh
blob: a7de7d42a7b68c551cc07f778ee89d075136d762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

DIR="$( cd -P "$( dirname "$0" )" && 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
  echo "Output comparison for TEST"
  diff -u ${DIR}/TEST.expected TEST.out
  exit 1;
fi