summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide/lit.rst
diff options
context:
space:
mode:
authorJoel E. Denny <jdenny.ornl@gmail.com>2019-07-08 12:18:40 +0000
committerJoel E. Denny <jdenny.ornl@gmail.com>2019-07-08 12:18:40 +0000
commit1602058c04541cb65e078e9f86deca21052b3801 (patch)
tree1565051684fce1d2cc119e484e076a7f8afb8e29 /llvm/docs/CommandGuide/lit.rst
parent8cf99a1170483287729190c839aad3526f1b9c11 (diff)
downloadbcm5719-llvm-1602058c04541cb65e078e9f86deca21052b3801.tar.gz
bcm5719-llvm-1602058c04541cb65e078e9f86deca21052b3801.zip
[lit] Parse command-line options from LIT_OPTS
Similar to `FILECHECK_OPTS` for FileCheck, `LIT_OPTS` makes it easy to adjust lit behavior when running the test suite via ninja. For example: ``` $ LIT_OPTS='--time-tests -vv --filter=threadprivate' \ ninja check-clang-openmp ``` Reviewed By: probinson Differential Revision: https://reviews.llvm.org/D64135 llvm-svn: 365313
Diffstat (limited to 'llvm/docs/CommandGuide/lit.rst')
-rw-r--r--llvm/docs/CommandGuide/lit.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/lit.rst b/llvm/docs/CommandGuide/lit.rst
index bcaa5c66c8c..7bb499b971d 100644
--- a/llvm/docs/CommandGuide/lit.rst
+++ b/llvm/docs/CommandGuide/lit.rst
@@ -38,6 +38,11 @@ Finally, :program:`lit` also supports additional options for only running a
subset of the options specified on the command line, see
:ref:`selection-options` for more information.
+:program:`lit` parses options from the environment variable ``LIT_OPTS`` after
+parsing options from the command line. ``LIT_OPTS`` is primarily useful for
+supplementing or overriding the command-line options supplied to :program:`lit`
+by ``check`` targets defined by a project's build system.
+
Users interested in the :program:`lit` architecture or designing a
:program:`lit` testing implementation should see :ref:`lit-infrastructure`.
OpenPOWER on IntegriCloud