[all-commits] [llvm/llvm-project] 5b55eb: [lit] Add a method to lit.TestFormat to get the li...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Tue Jun 27 13:28:09 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5b55eb1e888430abfbcde8a84c99ca35fb3c5374
https://github.com/llvm/llvm-project/commit/5b55eb1e888430abfbcde8a84c99ca35fb3c5374
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths:
M libcxx/utils/libcxx/test/format.py
M llvm/utils/lit/examples/many-tests/ManyTests.py
M llvm/utils/lit/lit/discovery.py
M llvm/utils/lit/lit/formats/base.py
A llvm/utils/lit/tests/Inputs/discovery-getTestsForPath/custom_format.py
A llvm/utils/lit/tests/Inputs/discovery-getTestsForPath/lit.cfg
A llvm/utils/lit/tests/Inputs/discovery-getTestsForPath/x.test
M llvm/utils/lit/tests/discovery.py
Log Message:
-----------
[lit] Add a method to lit.TestFormat to get the list of tests associated to a path
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 getTestsForPath 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.
Differential Revision: https://reviews.llvm.org/D151664
More information about the All-commits
mailing list