Sign in
llvm
/
llvm-project
/
mlir
/
25727811bf0e07594eafd59b4ddfad5f8d43a5ac
/
.
/
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