[PATCH] D151664: [lit] Add a method to lit.TestFormat to get the list of tests associated to a path

Louis Dionne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 29 14:01:34 PDT 2023


ldionne created this revision.
Herald added subscribers: delcypher, arichardson.
Herald added a project: All.
ldionne requested review of this revision.
Herald added projects: libc++, LLVM.
Herald added subscribers: llvm-commits, libcxx-commits.
Herald added a reviewer: libc++.

Lit TestFormat classes already needed to implement the getTestsInDirectory
method. However, some test formats may want to expand a single test path
to multiple Lit tests, for example in the case of a test that actually
generates other Lit tests.

To accommodate that, this commit adds the getTestsForFilename method to
TestFormat. This method can be used to turn a single path in a Lit test
suite into a list of tests associated to that path.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151664

Files:
  libcxx/utils/libcxx/test/format.py
  llvm/utils/lit/examples/many-tests/ManyTests.py
  llvm/utils/lit/lit/discovery.py
  llvm/utils/lit/lit/formats/base.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151664.526478.patch
Type: text/x-patch
Size: 8921 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230529/2b07175e/attachment.bin>


More information about the llvm-commits mailing list