From 22a402fb66c2f67051d387c26562ea901dd2f143 Mon Sep 17 00:00:00 2001 From: George Karpenkov Date: Fri, 7 Jul 2017 00:22:11 +0000 Subject: [lit] Modify LIT to accept environment variable LIT_FILTER to select tests. This is especially useful when lit is invoked indirectly by the build system, and additional arguments can not be easily specified. Differential Revision: https://reviews.llvm.org/D35091 llvm-svn: 307339 --- llvm/docs/CommandGuide/lit.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'llvm/docs/CommandGuide') diff --git a/llvm/docs/CommandGuide/lit.rst b/llvm/docs/CommandGuide/lit.rst index b8299d44d48..b4d15ef57b7 100644 --- a/llvm/docs/CommandGuide/lit.rst +++ b/llvm/docs/CommandGuide/lit.rst @@ -169,6 +169,13 @@ SELECTION OPTIONS must be in the range ``1..M``. The environment variable ``LIT_RUN_SHARD`` can also be used in place of this option. +.. option:: --filter=REGEXP + + Run only those tests whose name matches the regular expression specified in + ``REGEXP``. The environment variable ``LIT_FILTER`` can be also used in place + of this option, which is especially useful in environments where the call + to ``lit`` is issued indirectly. + ADDITIONAL OPTIONS ------------------ -- cgit v1.2.3