lit
« Back to VersTracker
Description:
Portable tool for LLVM- and Clang-style test suites
Type: Formula  |  Latest Version: 18.1.8@0  |  Tracked Since: Oct 15, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: testing llvm clang development c++
Install: brew install lit
About:
Lit is a portable command-line tool designed to run test suites for LLVM, Clang, and other related compiler projects. It serves as a test runner that discovers and executes test cases, checking their output against expected results. Its main value is providing a standardized way to manage and run complex test suites across different development environments.
Key Features:
  • Test discovery and execution
  • Flexible test parameterization and substitution
  • Integration with build systems like CMake and Make
  • Support for multiple test formats (e.g., 'RUN:' lines)
Use Cases:
  • Running regression tests for compiler toolchains
  • Validating code changes in large C++ projects
  • Automating test execution in CI/CD pipelines
Alternatives:
  • pytest – A general-purpose Python testing framework, whereas lit is specialized for compiler and toolchain testing.
  • gtest – A C++ unit testing framework; lit is a test runner that can execute gtest binaries but is not a framework itself.
Version History
Detected Version Rev Change Commit
Oct 15, 2025 11:47am 0 VERSION_BUMP 1f65a1fb
Oct 22, 2024 12:14am 0 VERSION_BUMP 5604e61d