3 # Create temporary files that are automatically deleted after the script's
5 stdout_file
=$
(mktemp
/tmp
/stdout.XXXXXX
)
6 stderr_file
=$
(mktemp
/tmp
/stderr.XXXXXX
)
8 # Tests for the keyword "failure" in the stderr of the optimization pass
9 mlir-opt
$1 -test-mlir-reducer > $stdout_file 2> $stderr_file
11 if [ $?
-ne 0 ] && grep 'failure' $stderr_file; then