Skip to main content

About

lit is a portable tool for executing LLVM and Clang style test suites, summarizing their results, and providing indication of failures. lit is designed to be a lightweight testing tool with as simple a user interface as possible.

Features

  • Portable!

  • Flexible test discovery.

  • Parallel test execution.

  • Support for multiple test formats and test suite designs.

Documentation

The official lit documentation is in the man page, available online at the LLVM Command Guide: http://llvm.org/cmds/lit.html.

Source

The lit source is available as part of LLVM, in the LLVM source repository: https://github.com/llvm/llvm-project/tree/main/llvm/utils/lit

Contributing to lit

Please browse the issues labeled tools:llvm-lit in LLVM’s issue tracker for ideas on what to work on: https://github.com/llvm/llvm-project/labels/tools%3Allvm-lit

Before submitting patches, run the test suite to ensure nothing has regressed:

# From within your LLVM source directory.
utils/lit/lit.py \
    --path /path/to/your/llvm/build/bin \
    utils/lit/tests

Note that lit’s tests depend on not and FileCheck, LLVM utilities. You will need to have built LLVM tools in order to run lit’s test suite successfully.

You’ll also want to confirm that lit continues to work when testing LLVM. Follow the instructions in http://llvm.org/docs/TestingGuide.html to run the regression test suite:

make check-llvm

And be sure to run the llvm-lit wrapper script as well:

/path/to/your/llvm/build/bin/llvm-lit utils/lit/tests

Finally, make sure lit works when installed via setuptools:

python utils/lit/setup.py install lit –path /path/to/your/llvm/build/bin utils/lit/tests

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lit-23.1.0.tar.gz (199.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lit-23.1.0-py3-none-any.whl (111.2 kB view details)

Uploaded Python 3

File details

Details for the file lit-23.1.0.tar.gz.

File metadata

  • Download URL: lit-23.1.0.tar.gz
  • Upload date:
  • Size: 199.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for lit-23.1.0.tar.gz
Algorithm Hash digest
SHA256 6fd50e0ca6fac61f4a672e9f30154edcab3d17c98aeb8202ac709bc353fe331f
MD5 3932c3347b4a591bc7a3e9d36f992a44
BLAKE2b-256 f337be14bf2cabacc40557a03cf4789d9a3335bf515b0ec3a655fdc84cae4779

See more details on using hashes here.

Provenance

The following attestation bundles were made for lit-23.1.0.tar.gz:

Publisher: release-tasks.yml on llvm/llvm-project

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lit-23.1.0-py3-none-any.whl.

File metadata

  • Download URL: lit-23.1.0-py3-none-any.whl
  • Upload date:
  • Size: 111.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for lit-23.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6361af7f311092f23f874a45d2db001f3f07dcbf438275809c2fc29d1c1196cc
MD5 0a89c9c650125f2c993e946c36ce8319
BLAKE2b-256 3e6727b6051432c4cc016e50d4b5acb82116b608dd0132de1dd1d6967263588e

See more details on using hashes here.

Provenance

The following attestation bundles were made for lit-23.1.0-py3-none-any.whl:

Publisher: release-tasks.yml on llvm/llvm-project

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

23.1.0 This release

2 files

18.1.8

2 files

18.1.7

2 files

18.1.6

2 files

18.1.4

2 files

18.1.3

2 files

18.1.2

1 file

18.1.1

1 file

17.0.6

1 file

17.0.5

1 file

17.0.4

1 file

17.0.3

1 file

17.0.2

1 file

17.0.1

1 file

16.0.6

1 file

16.0.5.post0

1 file

16.0.5

1 file

16.0.4

1 file

16.0.3

1 file

16.0.2

1 file

16.0.1

1 file

16.0.0

1 file

15.0.7

1 file

15.0.6

2 files

15.0.1

1 file

15.0.0.post0

1 file

15.0.0

1 file

14.0.6

1 file

14.0.3

1 file

14.0.0

2 files

13.0.1

1 file

13.0.0

1 file

12.0.1

1 file

12.0.0

2 files

0.11.1

2 files

0.11.0.post1

2 files

0.11.0

2 files

0.10.1.post1

1 file

0.10.1

1 file

0.10.0

1 file

0.9.0

1 file

0.8.0

1 file

0.7.1

1 file

0.7.0

1 file

0.6.0

1 file

0.5.1

1 file

0.5.0

1 file

0.4.1

1 file

0.4.0

1 file

0.3.0

1 file

0.2.0

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page