llvm-project/mlir/test/mlir-reduce
Kai Sasaki b03f439611 [mlir] Fix test failure with invalid piping syntax on old bash
Using '|&' syntax for piping both stdout and stderr is not supported by older bash. macOS pre-installs 3.2.57 as of today, and it causes test failure due to unexpected token '&'. We can use '2>&1' instead to make it compatible as much as possible.

```
******************** TEST 'MLIR :: mlir-cpu-runner/invalid.mlir' FAILED ********************
Script:
--
: 'RUN: at line 1';   not mlir-cpu-runner --no-implicit-module llvm-project/mlir/test/mlir-cpu-runner/invalid.mlir |& llvm-project/build/bin/FileCheck llvm-project/mlir/test/mlir-cpu-runner/invalid.mlir
--
Exit Code: 2

Command Output (stderr):
--
mlir-cpu-runner/Output/invalid.mlir.script: line 1: syntax error near unexpected token `&'
/mlir-cpu-runner/Output/invalid.mlir.script: line 1: `set -o pipefail;{ : 'RUN: at line 1';   not mlir-cpu-runner --no-implicit-module llvm-project/mlir/test/mlir-cpu-runner/invalid.mlir |& llvm-project/build/bin/FileCheck llvm-project/mlir/test/mlir-cpu-runner/invalid.mlir; }'
```

Reference: https://stackoverflow.com/questions/35384999/what-does-mean-in-bash

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D135347
2022-10-07 09:29:49 +09:00
..
crashop-reduction.mlir [mlir][NFC] Update textual references of `func` to `func.func` in tool/runner tests 2022-04-20 22:17:30 -07:00
dce-test.mlir [mlir][NFC] Update textual references of `func` to `func.func` in tool/runner tests 2022-04-20 22:17:30 -07:00
failure-test.sh [MLIR] prefer /bin/sh over /bin/bash for simple test scripts 2022-04-21 20:25:17 -05:00
invalid.mlir [mlir] Fix test failure with invalid piping syntax on old bash 2022-10-07 09:29:49 +09:00
multiple-function.mlir [mlir][NFC] Update textual references of `func` to `func.func` in tool/runner tests 2022-04-20 22:17:30 -07:00
simple-test.mlir [mlir][NFC] Update textual references of `func` to `func.func` in tool/runner tests 2022-04-20 22:17:30 -07:00
single-function.mlir [mlir][NFC] Update textual references of `func` to `func.func` in tool/runner tests 2022-04-20 22:17:30 -07:00
test.sh [MLIR] prefer /bin/sh over /bin/bash for simple test scripts 2022-04-21 20:25:17 -05:00