• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2# Tests for the keyword "failure" in the stderr of the optimization pass
3mlir-opt $1 -test-mlir-reducer > /tmp/stdout.$$ 2>/tmp/stderr.$$
4
5if [ $? -ne 0 ] && grep 'failure' /tmp/stderr.$$; then
6  exit 1
7  #Interesting behavior
8else
9  exit 0
10fi
11