blob: 803fe0f1b6de9845de8b4988b7ee1fb502f5afce (
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}" -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
|