Create Reduction Tree Pass
[lldb.git] / mlir / test / mlir-reduce / failure-test.sh
1 #!/bin/bash
2 # Tests for the keyword "failure" in the stderr of the optimization pass
3 mlir-opt $1 -test-mlir-reducer > /tmp/stdout.$$ 2>/tmp/stderr.$$
4
5 if [ $? -ne 0 ] && grep 'failure' /tmp/stderr.$$; then
6   exit 1
7   #Interesting behavior
8 else 
9   exit 0
10 fi