macOS
brew install litlocal Homebrew formula metadata
brew
Portable tool for LLVM- and Clang-style test suites. Version 18.1.8 via Homebrew; verified 2026-06-22.
install
brew install litlocal Homebrew formula metadata
nix profile install nixpkgs#litnixpkgs package indexes · lit · source: raw.githubusercontent.com
sudo zypper install python311-litopenSUSE Tumbleweed package metadata · python311-lit · source: download.opensuse.org
overview
Portable tool for LLVM- and Clang-style test suites
history
lit, the LLVM Integrated Tester, is the portable test runner used for LLVM- and Clang-style test suites. It discovers tests, runs them in parallel, summarizes pass and failure results, and drives the small regression tests that are central to LLVM development.
lit developed inside the LLVM project as the project's Python-based test runner. The LLVM documentation describes it as lightweight, portable, and intentionally simple at the command line, while still flexible enough to support different test formats and suite layouts.
As LLVM grew into a family of compiler infrastructure projects, lit became part of the shared contributor workflow. The LLVM Testing Infrastructure Guide documents regression tests under `llvm/test`, `llvm-lit` invocations for individual files and directories, `check-*` build targets, and the use of lit configuration files such as `lit.cfg` and `lit.site.cfg.py`.
lit's adoption is unusually deep for a small Python test tool because it is carried by LLVM, Clang, LLD, MLIR, and downstream compiler projects. The PyPI package made the runner available outside a full LLVM checkout, while distribution packages such as Homebrew's `lit` make it convenient for projects that want LLVM-style tests without building all of LLVM.
The common pattern is to put `RUN:` lines in test files, use FileCheck or project tools to validate output, and run suites through `lit`, `llvm-lit`, or build-system targets like `check-llvm` and `check-all`. lit's configuration files let projects define substitutions, features, test suffixes, environment settings, and custom formats.
lit matters to package maintainers because it is a tiny command whose real importance comes from compiler ecosystems. Packaging it separately lets downstream projects run conformance and regression tests without hauling in an entire LLVM build tree.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
lit | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:lit |
|---|---|
| Version | 18.1.8 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/lit |
| Homepage | https://llvm.org |
| Repository | https://github.com/llvm/llvm-project |
| Upstream docs | https://llvm.org/docs/CommandGuide/lit.html |
| License | Apache-2.0 WITH LLVM-exception |
| Source archive | https://files.pythonhosted.org/packages/47/b4/d7e210971494db7b9a9ac48ff37dfa59a8b14c773f9cf47e6bda58411c0d/lit-18.1.8.tar.gz |
| Last updated | 2026-06-22T14:05:11-07:00 |
| Pulse | updated |
| Dependencies | python@3.14 |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | lit |
| Version Scheme | 0 |
| Revision | 0 |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
lit
nix profile install nixpkgs#litpython311-lit 18.1.8-1.3
A portable tool for executing test suites
sudo zypper install python311-litpython313-lit 18.1.8-1.3
A portable tool for executing test suites
sudo zypper install python313-litpython314-lit 18.1.8-1.3
A portable tool for executing test suites
sudo zypper install python314-litsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.