Sign in
llvm
/
llvm-project
/
c94b80b4380ce851b5cf406a961eab472a43b3df
/
.
/
mlir
/
test
/
mlir-reduce
/
failure-test.sh
blob: 6a07743d959cf97d2c21a6aec6199908af7288e0 [
file
] [
log
] [
blame
]
#!/bin/bash
# Tests for the keyword "failure" in the stderr of the optimization pass
mlir
-
opt $1
-
test
-
mlir
-
reducer
>
/
tmp
/
stdout
.
$$
2
>/
tmp
/
stderr
.
$$
if
[
$
?
-
ne
0
]
&&
grep
'failure'
/
tmp
/
stderr
.
$$
;
then
exit
1
#Interesting behavior
else
exit
0
fi