[PATCH] D78589: [lit] Add an option to print all features used in tests

Louis Dionne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 21 14:06:27 PDT 2020


ldionne created this revision.
ldionne added reviewers: yln, jdenny, delcypher.
Herald added subscribers: llvm-commits, dexonsmith, jkorous.
Herald added a project: LLVM.

Lit test suites can tend to accumulate annotations that are not necessarily
relevant as time goes by, for example XFAILS on old compilers or platforms.
To help spot old annotations that can be cleaned up, it can be useful to
look at all features used inside a test suite.

This commit adds a new option '--show-features' that prints all the
features used in XFAIL, REQUIRES and UNSUPPORTED of all tests that
are discovered.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78589

Files:
  llvm/utils/lit/lit/Test.py
  llvm/utils/lit/lit/TestRunner.py
  llvm/utils/lit/lit/cl_arguments.py
  llvm/utils/lit/lit/main.py
  llvm/utils/lit/tests/Inputs/show-features/lit.cfg
  llvm/utils/lit/tests/Inputs/show-features/mixed.txt
  llvm/utils/lit/tests/Inputs/show-features/requires.txt
  llvm/utils/lit/tests/Inputs/show-features/unsupported.txt
  llvm/utils/lit/tests/Inputs/show-features/xfail.txt
  llvm/utils/lit/tests/show-features.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78589.259100.patch
Type: text/x-patch
Size: 10637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200421/265089cf/attachment.bin>


More information about the llvm-commits mailing list