failure-test.sh 257 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 #!/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