# Install lit with Homebrew, Nix, zypper

Portable tool for LLVM- and Clang-style test suites. Version 18.1.8 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:lit
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install lit
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#lit
```

  Evidence: nixpkgs package indexes: lit from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- zypper (92%):

```sh
sudo zypper install python311-lit
```

  Evidence: openSUSE Tumbleweed package metadata: python311-lit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:lit
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/lit>
- **Version:** 18.1.8
- **Source summary:** Portable tool for LLVM- and Clang-style test suites
- **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
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- lit (cli)
- lit (alias)

## Dependencies

- python@3.14

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 18.1.8
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://llvm.org
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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`.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 2010-09-18: The `lit` package published version 0.1.0 on PyPI.
- 2024-06-25: PyPI recorded the 18.1.8 release of the standalone `lit` package.
- 2026: LLVM 23.0.0git documentation described lit as the LLVM Integrated Tester and documented response files, parallel execution, result output, and test-suite infrastructure.

### Related projects

- Related projects include LLVM, Clang, LLD, MLIR, FileCheck, GoogleTest-based LLVM unit tests, and the LLVM test-suite repository.

### Sources

- <https://github.com/llvm/llvm-project>
- <https://llvm.org/docs/CommandGuide/lit.html>
- <https://llvm.org/docs/TestingGuide.html>
- <https://pypi.org/project/lit/>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** lit
- **Version Scheme:** 0
- **Revision:** 0
- **Conflicts With:** luvit
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - lit: normalized package name match | nixpkgs package indexes: lit from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- zypper - python311-lit - 18.1.8-1.3: normalized package name match | openSUSE Tumbleweed package metadata: python311-lit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A portable tool for executing test suites | http://llvm.org/cmds/lit.html
- zypper - python313-lit - 18.1.8-1.3: normalized package name match | openSUSE Tumbleweed package metadata: python313-lit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A portable tool for executing test suites | http://llvm.org/cmds/lit.html
- zypper - python314-lit - 18.1.8-1.3: normalized package name match | openSUSE Tumbleweed package metadata: python314-lit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A portable tool for executing test suites | http://llvm.org/cmds/lit.html


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [cargo-nextest](https://www.automicvault.com/pkg/brew/cargo-nextest/) - Shares av.db curated category or tags: cli, developer-tools, test-runner, testing.
- [gotestsum](https://www.automicvault.com/pkg/brew/gotestsum/) - Shares av.db curated category or tags: cli, developer-tools, test-runner, testing.
- [klee](https://www.automicvault.com/pkg/brew/klee/) - Shares av.db curated category or tags: cli, developer-tools, llvm, testing.
- [pytest](https://www.automicvault.com/pkg/brew/pytest/) - Shares av.db curated category or tags: cli, developer-tools, test-runner, testing.
- [shelltestrunner](https://www.automicvault.com/pkg/brew/shelltestrunner/) - Shares av.db curated category or tags: cli, developer-tools, test-runner, testing.
- [allure](https://www.automicvault.com/pkg/brew/allure/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [artillery](https://www.automicvault.com/pkg/brew/artillery/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [busted](https://www.automicvault.com/pkg/brew/busted/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [llvm](https://www.automicvault.com/pkg/brew/llvm/) - Both packages touch the same language runtime or ecosystem. Shared terms: clang, cli, compiler, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/lit.yml](https://github.com/automic-vault/db/blob/main/combined/lit.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
