aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/tools/tests/run-test.sh
blob: c3a733618d32a7e617325cec0ced65d88e68d507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

SRCDIR="${srcdir}"
I965_ASM="$1"

test="TEST"

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

if [ -n "$3" ] ; then
   gen="$3"
fi

for file in ${SRCDIR}/${test}/*.asm; do
   if [ -f "$file" ]; then
      filename="${file%.*}"
      "${I965_ASM}" -t hex -g ${gen} -o "${file}.out" "${file}"
      if cmp "${file}.out" "${filename}.expected" 2> /dev/null; then
         echo "${file} : PASS"
      else
         echo "Output comparison for ${file}"
         diff -u "${filename}.expected" "${file}.out"
      fi
   fi
done