Skip to main content

lit - A Software Testing Tool

About

lit is a portable tool for executing LLVM and Clang style test suites, summarizing their results, and providing indication of failures. lit is designed to be a lightweight testing tool with as simple a user interface as possible.

Features

  • Portable!

  • Flexible test discovery.

  • Parallel test execution.

  • Support for multiple test formats and test suite designs.

Documentation

The official lit documentation is in the man page, available online at the LLVM Command Guide: http://llvm.org/cmds/lit.html.

Source

The lit source is available as part of LLVM, in the LLVM source repository: https://github.com/llvm/llvm-project/tree/main/llvm/utils/lit

Contributing to lit

Please browse the issues labeled tools:llvm-lit in LLVM’s issue tracker for ideas on what to work on: https://github.com/llvm/llvm-project/labels/tools%3Allvm-lit

Before submitting patches, run the test suite to ensure nothing has regressed:

# From within your LLVM source directory.
utils/lit/lit.py \
    --path /path/to/your/llvm/build/bin \
    utils/lit/tests

Note that lit’s tests depend on not and FileCheck, LLVM utilities. You will need to have built LLVM tools in order to run lit’s test suite successfully.

You’ll also want to confirm that lit continues to work when testing LLVM. Follow the instructions in http://llvm.org/docs/TestingGuide.html to run the regression test suite:

make check-llvm

And be sure to run the llvm-lit wrapper script as well:

/path/to/your/llvm/build/bin/llvm-lit utils/lit/tests

Finally, make sure lit works when installed via setuptools:

python utils/lit/setup.py install lit –path /path/to/your/llvm/build/bin utils/lit/tests

Release files for lit 23.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lit 23.1.2
File Size Uploaded
lit-23.1.2.tar.gz 199.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lit 23.1.2
File Interpreter ABI Platform
lit-23.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 311.0 kB

Release files / lit-23.1.2.tar.gz

Download URL lit-23.1.2.tar.gz
Size 199.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1a839a3f187ae74ce96d9b29a6b5b69671359e436b674e706f2ea5a343ca3cd6
BLAKE2b-256 checksum
How to use checksums
4dc73b3e737fa5d07f2d2f9ecedd354a1999e71d813628a539fcf05f1611c468
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / lit-23.1.2-py3-none-any.whl

Download URL lit-23.1.2-py3-none-any.whl
Size 111.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3b90c32edf5d4f2686d387ac58f35e2f5eb9c87e62ca00d360fb6b7bde080ce
BLAKE2b-256 checksum
How to use checksums
e16cecdb7232f8a54acca1fc5d08e7277a2ae425b7d332bf410ffbdb5d9d321b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

23.1.2 This release

2 release files

23.1.0

2 release files

18.1.8

2 release files

18.1.6

2 release files

18.1.4

2 release files

18.1.3

2 release files

18.1.2

1 release file

18.1.1

1 release file

17.0.6

1 release file

17.0.5

1 release file

17.0.4

1 release file

17.0.3

1 release file

17.0.2

1 release file

17.0.1

1 release file

16.0.6

1 release file

16.0.5

1 release file

16.0.4

1 release file

16.0.3

1 release file

16.0.2

1 release file

16.0.1

1 release file

16.0.0

1 release file

15.0.7

1 release file

15.0.1

1 release file

15.0.0

1 release file

14.0.6

1 release file

14.0.3

1 release file

13.0.1

1 release file

13.0.0

1 release file

12.0.1

1 release file

0.11.0

2 release files

0.10.1

1 release file

0.10.0

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page