Skip to content

Commit

Permalink
lit: add page (#15381)
Browse files Browse the repository at this point in the history
Co-authored-by: Wiktor Perskawiec <[email protected]>
Co-authored-by: Sebastiaan Speck <[email protected]>
  • Loading branch information
3 people authored Dec 30, 2024
1 parent 30ae611 commit e35ccbf
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pages/common/lit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# lit

> LLVM integrated tester for executing LLVM and Clang style test suites, summarizing results.
> Part of LLVM.
> More information: <https://www.llvm.org/docs/CommandGuide/lit.html>.
- Run a specified test case:

`lit {{path/to/test_file.test}}`

- Run all test cases in a specified directory:

`lit {{path/to/test_suite}}`

- Run all test cases and check the wall time for each cases, then report to summary output:

`lit {{path/to/test_suite}} --time-tests`

- Run individual tests with Valgrind (memory check and memory leak test):

`lit {{path/to/test_file.test}} --vg --vg-leak --vg-args={{args_to_valgrind}}`

0 comments on commit e35ccbf

Please sign in to comment.