[PATCH] D117694: [UpdateTestChecks] Add --filter and --filter-out options

David Greene via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 19 09:41:00 PST 2022


greened created this revision.
greened added reviewers: jdoerfert, timsmith78, cameron.mcinally, Flakebi, lebedev.ri, MaskRay, arichardson, hvdijk, spatel, RKSimon.
greened added a project: LLVM.
greened requested review of this revision.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117694

Files:
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-non-temporal.ll
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-non-temporal.ll.filter-out.expected
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-non-temporal.ll.filter.expected
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-non-temporal.ll.multifilter.expected
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-non-temporal.ll.nofilter.expected
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/x86-filter.test
  llvm/utils/UpdateTestChecks/asm.py
  llvm/utils/UpdateTestChecks/common.py
  llvm/utils/update_cc_test_checks.py
  llvm/utils/update_llc_test_checks.py
  llvm/utils/update_test_checks.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117694.401289.patch
Type: text/x-patch
Size: 33164 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220119/176b7a5f/attachment.bin>


More information about the llvm-commits mailing list