blob: 46ef922a9c1877f908b86aaeb76cee04106a6552 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
readonly OUT=/tmp/llvm-ir-tests-out
trap "rm -f $OUT" EXIT
for f in ./test/data/*.yx
do
if ! ./oryx -l "$f" \
| sed '1,/^$/d' \
| diff -u --color=always - "${f%%yx}ll" >$OUT
then
file="$(basename "$f" .yx)"
echo "llvm-ir-tests: Test ‘$file’ failed" >&2
printf '\tFailing diff:\n' >&2
cat $OUT
exit 1
fi
done
|