# lit を Homebrew, Nix, zypper でインストール

lit のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install lit
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

- zypper (92%):

```sh
sudo zypper install python313-lit
```

  証拠: openSUSE Tumbleweed package metadata: python313-lit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:lit
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/lit>
- **バージョン:** 18.1.8
- **ソース概要:** Portable tool for LLVM- and Clang-style test suites
- **ホームページ:** <https://llvm.org>
- **上流ドキュメント:** <https://llvm.org>
- **ライセンス:** Apache-2.0 WITH LLVM-exception
- **ソースアーカイブ:** <https://files.pythonhosted.org/packages/47/b4/d7e210971494db7b9a9ac48ff37dfa59a8b14c773f9cf47e6bda58411c0d/lit-18.1.8.tar.gz>
- **最終更新:** 2026-06-22T14:05:11-07:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- lit (cli)
- lit (エイリアス)

## 依存関係

- python@3.14

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 18.1.8
- マネージャ更新日: 2026-06-22
- ローカルデータ: OK
- 上流リポジトリ: https://llvm.org
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

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.

### タイムライン

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

### ソース

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


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **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

## 他のパッケージマネージャ記録

- 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 - python313-lit - 18.1.8-1.4: normalized package name match | openSUSE Tumbleweed package metadata: python313-lit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A portable tool for executing test suites | http://llvm.org/cmds/lit.html
- zypper - python314-lit - 18.1.8-1.4: normalized package name match | openSUSE Tumbleweed package metadata: python314-lit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A portable tool for executing test suites | http://llvm.org/cmds/lit.html


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/ja/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [python@3.14](https://pkg.so/ja/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [pytest](https://pkg.so/ja/brew/pytest/) - Shares pkgdb curated category or tags: cli, developer-tools, test-runner, testing.
- [cargo-nextest](https://pkg.so/ja/brew/cargo-nextest/) - Shares pkgdb curated category or tags: cli, developer-tools, test-runner, testing.
- [klee](https://pkg.so/ja/brew/klee/) - Shares pkgdb curated category or tags: cli, developer-tools, llvm, testing.
- [shelltestrunner](https://pkg.so/ja/brew/shelltestrunner/) - Shares pkgdb curated category or tags: cli, developer-tools, test-runner, testing.
- [lcov](https://pkg.so/ja/brew/lcov/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [bison](https://pkg.so/ja/brew/bison/) - Shares pkgdb curated category or tags: cli, compiler-tools, developer-tools.
- [bats-core](https://pkg.so/ja/brew/bats-core/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [allure](https://pkg.so/ja/brew/allure/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [llvm](https://pkg.so/ja/brew/llvm/) - Both packages touch the same language runtime or ecosystem. Shared terms: clang, cli, compiler, developer, developer-tools.
- [llvm@16](https://pkg.so/ja/brew/llvm-16/) - 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/mxcl/pkgdb/blob/main/combined/lit.yml)


## ソース

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