lit
A Software Testing Tool
What it is and what it does
lit is a lightweight, portable test runner originally designed for LLVM and Clang test suites. It discovers tests, executes them in parallel, and provides a summary of results with clear failure reporting. The package has no runtime dependencies, making it simple to install and deploy.
lit is primarily used by LLVM developers and projects that adopt LLVM's test infrastructure. It supports multiple test formats and flexible test discovery, allowing projects to define custom test runners. The tool is designed for simplicity and portability across operating systems, though its active development has stalled—the last release was 780 days ago and maintenance status is dormant.
Use it for:
- Run LLVM and Clang test suites locally or in CI pipelines with parallel execution.
- Execute custom test suites that follow LLVM's test format conventions in projects that adopt lit.
- Integrate lit into build systems for projects that depend on LLVM toolchain testing.
- Discover and run tests across multiple directories with flexible, configurable test discovery rules.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
lit is a portable test runner for executing LLVM and Clang style test suites, summarizing results, and reporting failures with parallel execution support.
Yes, if you are working with LLVM, Clang, or a project that already uses lit for testing. The package is stable, has no dependencies, and installs easily. However, do not install expecting active maintenance or new features—development is dormant. For new test infrastructure projects, consider whether lit's LLVM-centric design fits your needs or whether a more actively maintained alternative would be safer.
Install
lit on PyPI
pip
pip install lituv
uv add litpoetry
poetry add litInstalling lit
Before you install
Low install friction with no runtime dependencies. Maintenance status is dormant—780 days since last release—so expect no active bug fixes or feature development, though the package remains functional for its core use case.
License in practice
Licensed under Apache-2.0 with LLVM exception (permissive). Safe for commercial and private use with minimal attribution requirements.
Quickstart
pip install lit
lit --path /path/to/llvm/build/bin /path/to/test/suite
Requires LLVM utilities (not, FileCheck) to be built and available in PATH for full test suite execution.
Verify before relying
- Whether lit works with modern Python versions beyond what the fact sheet specifies.
- Current state of LLVM integration and whether the package remains compatible with recent LLVM releases.
- Whether parallel test execution performance scales meaningfully for large test suites.
Package facts
| License | Apache-2.0 with LLVM exception (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 780 days since the last release |
| First released | |
| Downloads | 3,427,839/month — #2,625 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: lit-18.1.8-py3-none-any.whl
Keywords: test, C++, automatic, discovery
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
llvm-testing-toolsProvides LLVM testing utilities like FileCheck…
unclear · top 15,000 on PyPI
filecheckfilecheck is a Python implementation of LLVM's…
permissive · top 15,000 on PyPI
llvmlitellvmlite provides a lightweight Python binding…
permissive · top 1,000 on PyPI
clangd-tidyclangd-tidy wraps clangd to provide faster…
permissive · top 15,000 on PyPI
clang-tidyPackages the clang-tidy C++ linter and related…
permissive · top 15,000 on PyPI
atherisAtheris is a coverage-guided fuzzer for Python…
unclear · top 15,000 on PyPI
clangProvides Python bindings to libclang, allowing…
permissive · top 5,000 on PyPI
concurrencytestRuns unittest test suites concurrently across…
copyleft · top 15,000 on PyPI
rtestA Python test runner built in Rust that uses…
permissive · top 15,000 on PyPI
pyclangPyclang wraps clang-tidy to run static analysis…
permissive · top 15,000 on PyPI