|
20 | 20 | # testFormat: The test format to use to interpret tests. |
21 | 21 | extra_substitutions = extra_substitutions = ( |
22 | 22 | [ |
23 | | - (r"\| not FileCheck .*", "> /dev/null"), |
24 | | - (r"\| FileCheck .*", "> /dev/null"), |
| 23 | + (r"FileCheck .*", "cat > /dev/null"), |
| 24 | + (r"not FileCheck .*", "cat > /dev/null"), |
25 | 25 | ] |
26 | 26 | if config.enable_profcheck |
27 | 27 | else [] |
|
39 | 39 | # directories. |
40 | 40 | config.excludes = ["Inputs", "CMakeLists.txt", "README.txt", "LICENSE.txt"] |
41 | 41 |
|
| 42 | +# Exclude llvm-reduce tests for profcheck because we substitute the FileCheck |
| 43 | +# binary with a no-op command for profcheck, but llvm-reduce tests have RUN |
| 44 | +# commands of the form llvm-reduce --test FileCheck, which explode if we |
| 45 | +# substitute FileCheck because llvm-reduce expects FileCheck in these tests. |
| 46 | +# It's not really possible to exclude these tests from the command substitution, |
| 47 | +# so we just exclude llvm-reduce tests from this config altogether. This should |
| 48 | +# be fine though as profcheck config tests are mostly concerned with opt. |
| 49 | +if config.enable_profcheck: |
| 50 | + config.excludes = config.excludes + ["llvm-reduce"] |
| 51 | + |
42 | 52 | # test_source_root: The root path where tests are located. |
43 | 53 | config.test_source_root = os.path.dirname(__file__) |
44 | 54 |
|
|
0 commit comments