OSDN Git Service

[lit] Parse command-line options from LIT_OPTS
authorJoel E. Denny <jdenny.ornl@gmail.com>
Mon, 8 Jul 2019 12:18:40 +0000 (12:18 +0000)
committerJoel E. Denny <jdenny.ornl@gmail.com>
Mon, 8 Jul 2019 12:18:40 +0000 (12:18 +0000)
commit31d19a7f8b16a0641d5d5f37d761d6cfc44425fc
tree36ff98da953cbd0f255c23fb9bec970c7953dd37
parentdd9df6f533df19c7cf7db073409953c85f0c7ba3
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365313 91177308-0d34-0410-b5e6-96231b3b80d8
docs/CommandGuide/lit.rst
utils/lit/lit/main.py
utils/lit/tests/Inputs/lit-opts/lit.cfg [new file with mode: 0644]
utils/lit/tests/Inputs/lit-opts/test.txt [new file with mode: 0644]
utils/lit/tests/lit-opts.py [new file with mode: 0644]