Automic VaultAutomic Vault

brew

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

Additional install commands

macOS

Homebrewverified · 100%
brew install lit

local Homebrew formula metadata

overview

Package summary

Portable tool for LLVM- and Clang-style test suites

Commands and aliases

  • lit

history

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.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
litcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version18.1.8
manager updated2026-06-22
local dataok
upstreamnot checked
latest detectednot detected

https://llvm.org

  • infoRelease/tag comparison is only available for GitHub repositories.https://llvm.orgnone confidence

install metadata

Package metadata

Package keybrew:lit
Version18.1.8
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/lit
Homepagehttps://llvm.org
Repositoryhttps://github.com/llvm/llvm-project
Upstream docshttps://llvm.org/docs/CommandGuide/lit.html
LicenseApache-2.0 WITH LLVM-exception
Source archivehttps://files.pythonhosted.org/packages/47/b4/d7e210971494db7b9a9ac48ff37dfa59a8b14c773f9cf47e6bda58411c0d/lit-18.1.8.tar.gz
Last updated2026-06-22T14:05:11-07:00
Pulseupdated
Dependenciespython@3.14
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelit
Version Scheme0
Revision0
Conflicts With
  • luvit
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

lit

nix profile install nixpkgs#lit
  • normalized package name match
  • Matched by: Lit
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: lit from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
zypper95%

python311-lit 18.1.8-1.3

A portable tool for executing test suites

http://llvm.org/cmds/lit.html

sudo zypper install python311-lit
  • License: NCSA
  • Category: Development/Tools/Other
  • Architecture: noarch
  • Source Package: lit
  • 4 dependencies
  • 4 provides
  • normalized package name match
  • Matched by: Lit
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python311-lit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

python313-lit 18.1.8-1.3

A portable tool for executing test suites

http://llvm.org/cmds/lit.html

sudo zypper install python313-lit
  • License: NCSA
  • Category: Development/Tools/Other
  • Architecture: noarch
  • Source Package: lit
  • 4 dependencies
  • 5 provides
  • normalized package name match
  • Matched by: Lit
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python313-lit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

python314-lit 18.1.8-1.3

A portable tool for executing test suites

http://llvm.org/cmds/lit.html

sudo zypper install python314-lit
  • License: NCSA
  • Category: Development/Tools/Other
  • Architecture: noarch
  • Source Package: lit
  • 4 dependencies
  • 4 provides
  • normalized package name match
  • Matched by: Lit
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python314-lit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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