[lit] Run unit tests as part of lit test suite
authorBrian Gesiak <modocache@gmail.com>
Wed, 12 Oct 2016 03:35:04 +0000 (03:35 +0000)
committerBrian Gesiak <modocache@gmail.com>
Wed, 12 Oct 2016 03:35:04 +0000 (03:35 +0000)
commit8d89c3c6f7f731662d9e6af3ad82069e380c8355
treee59b9d31ad2ebad8dcc19761d9e224f08b3c45c8
parentd57d93c9de39187ec2298463b539ce617012c8ce
[lit] Run unit tests as part of lit test suite

Summary:
The Python file `utils/lit/lit/ShUtil.py` contains:

1. Logic used by lit itself
2. A set of unit tests for that logic, which can be run by invoking
  `python utils/lit/lit/ShUtil.py`

Move these unit tests to a `tests/unit` subdirectory of lit, and run
the tests as part of lit's test suite. This ensures that, should the
lit test suite be included in LLVM's own regression test suite, these
unit tests will also be run.

(Instructions on how to run lit's test suite can be found in
`utils/lit/README.txt`.)

Reviewers: ddunbar, echristo, delcypher, beanz

Subscribers: mehdi_amini, llvm-commits

Differential Revision: https://reviews.llvm.org/D25411

llvm-svn: 283968
llvm/utils/lit/lit/ShUtil.py
llvm/utils/lit/tests/unit/ShUtil.py [new file with mode: 0644]