The Python file utils/lit/lit/ShUtil.py contains:
- Logic used by lit itself
- 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.)