[all-commits] [llvm/llvm-project] ecd46e: [UpdateTestChecks] Re-add --filter and --filter-ou...
David Greene via All-commits
all-commits at lists.llvm.org
Mon Jan 31 13:12:10 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ecd46edd613433154b3d0eeb25af27234f6f98eb
https://github.com/llvm/llvm-project/commit/ecd46edd613433154b3d0eeb25af27234f6f98eb
Author: David Greene <david.greene at cerebras.net>
Date: 2022-01-31 (Mon, 31 Jan 2022)
Changed paths:
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-non-temporal.ll
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-non-temporal.ll.filter-out.expected
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-non-temporal.ll.filter.expected
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-non-temporal.ll.multifilter.expected
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-non-temporal.ll.nofilter.expected
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/x86-filter.test
M llvm/utils/UpdateTestChecks/asm.py
M llvm/utils/UpdateTestChecks/common.py
M llvm/utils/update_cc_test_checks.py
M llvm/utils/update_llc_test_checks.py
M llvm/utils/update_test_checks.py
Log Message:
-----------
[UpdateTestChecks] Re-add --filter and --filter-out options
Re-add filtering options with fixes for failed tests. We were not passing the
is_filtered argument in all check generator calls in update_cc_test_checks.py
Enhance the various update_*_test_checks.py tools to allow filtering the tool
output with regular expressions. The --filter option will emit only tool output
lines matching the given regular expression while the --filter-out option will
emit only tools output lines not matching the given regular expression. Filters
are applied in order of appearance on the command line (or in UTC_ARGS) and the
first matching filter terminates the search.
This allows test authors to create more focused tests by removing irrelevant
tool output and checking only the pieces of output necessary to test the desired
functionality.
Differential Revision: https://reviews.llvm.org/D117694
More information about the All-commits
mailing list