[PATCH] D150856: [lit] Add %{for-each-file} substitution
Vlad Serebrennikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 18 03:40:36 PDT 2023
Endill created this revision.
Endill added reviewers: aaron.ballman, asavonic, ldionne, sammccall, broadwaylamb.
Herald added a subscriber: delcypher.
Herald added a project: All.
Endill requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This substitution effectively duplicated enclosing RUN command for each file in the given path. Accepts wildcards.
In order to keep implementation simple, only a single such substitution per command is supported. It is possible to support multiple such substitution via cartesian product, if deemed necessary.
Use case for this is upcoming refactoring of C++ DR tests structure to avoid tests interfering with each other. Currently, tests are grouped by 100 per file, and have a RUN command per C++ Standard revision (for a total of 7 with the recent addition of `c++2c` mode). The plan is to rely heavily on `split-file` to invoke the compiler individually for each test, but avoid duplicating RUN commands for each of them.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D150856
Files:
llvm/docs/CommandGuide/lit.rst
llvm/docs/ReleaseNotes.rst
llvm/utils/lit/lit/TestRunner.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150856.523314.patch
Type: text/x-patch
Size: 4387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230518/c851ad68/attachment.bin>
More information about the llvm-commits
mailing list