Name Date Size #Lines LOC

..12-Nov-2023-

examples/H08-May-2022-4733

lit/H12-Nov-2023-7,6175,705

tests/H12-Nov-2023-6,9353,277

utils/H08-May-2022-10063

CMakeLists.txtH A D12-Nov-20231.3 KiB3127

LICENSE.TXTH A D08-May-202214.8 KiB280229

MANIFEST.inH A D08-May-2022242 1110

README.rstH A D12-Nov-20231.8 KiB7045

lit.pyH A D08-May-202289 73

pyproject.tomlH A D12-Nov-202381 43

setup.pyH A D12-Nov-20231.3 KiB5137

README.rst

1===============================
2 lit - A Software Testing Tool
3===============================
4
5About
6=====
7
8*lit* is a portable tool for executing LLVM and Clang style test suites,
9summarizing their results, and providing indication of failures. *lit* is
10designed to be a lightweight testing tool with as simple a user interface as
11possible.
12
13
14Features
15========
16
17 * Portable!
18 * Flexible test discovery.
19 * Parallel test execution.
20 * Support for multiple test formats and test suite designs.
21
22
23Documentation
24=============
25
26The official *lit* documentation is in the man page, available online at the LLVM
27Command Guide: http://llvm.org/cmds/lit.html.
28
29
30Source
31======
32
33The *lit* source is available as part of LLVM, in the LLVM source repository:
34https://github.com/llvm/llvm-project/tree/main/llvm/utils/lit
35
36
37Contributing to lit
38===================
39
40Please browse the issues labeled *tools:llvm-lit* in LLVM's issue tracker for
41ideas on what to work on:
42https://github.com/llvm/llvm-project/labels/tools%3Allvm-lit
43
44Before submitting patches, run the test suite to ensure nothing has regressed::
45
46    # From within your LLVM source directory.
47    utils/lit/lit.py \
48        --path /path/to/your/llvm/build/bin \
49        utils/lit/tests
50
51Note that lit's tests depend on ``not`` and ``FileCheck``, LLVM utilities.
52You will need to have built LLVM tools in order to run lit's test suite
53successfully.
54
55You'll also want to confirm that lit continues to work when testing LLVM.
56Follow the instructions in http://llvm.org/docs/TestingGuide.html to run the
57regression test suite:
58
59    make check-llvm
60
61And be sure to run the llvm-lit wrapper script as well:
62
63    /path/to/your/llvm/build/bin/llvm-lit utils/lit/tests
64
65Finally, make sure lit works when installed via setuptools:
66
67    python utils/lit/setup.py install
68    lit --path /path/to/your/llvm/build/bin utils/lit/tests
69
70