Skip to content

Ignore FileCheck when profcheck is enabled #151214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion llvm/test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@
config.name = "LLVM"

# testFormat: The test format to use to interpret tests.
config.test_format = lit.formats.ShTest(not llvm_config.use_lit_shell)
extra_substitutions = extra_substitutions = (
[
(r"\| not FileCheck .*", "> /dev/null"),
(r"\| FileCheck .*", "> /dev/null"),
]
if config.enable_profcheck
else []
)
config.test_format = lit.formats.ShTest(
not llvm_config.use_lit_shell, extra_substitutions
)

# suffixes: A list of file extensions to treat as test files. This is overriden
# by individual lit.local.cfg files in the test subdirectories.
Expand Down
Loading