1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

lit: add page (#15381)

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
P2Tree 2024-12-30 20:23:25 +08:00 committed by GitHub
parent 30ae611be0
commit e35ccbf20c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

21
pages/common/lit.md Normal file
View file

@ -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}}`