[all-commits] [llvm/llvm-project] d8e26b: [LIT] Added an option to llvm-lit to emit the nece...
shivam-amd via All-commits
all-commits at lists.llvm.org
Fri Jul 21 02:53:34 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d8e26bccb3016d255298b7db78fe8bf05dd880b2
https://github.com/llvm/llvm-project/commit/d8e26bccb3016d255298b7db78fe8bf05dd880b2
Author: Shivam Gupta <Shivam.Gupta2 at amd.com>
Date: 2023-07-21 (Fri, 21 Jul 2023)
Changed paths:
M llvm/CMakeLists.txt
M llvm/cmake/modules/HandleLLVMOptions.cmake
M llvm/docs/CMake.rst
M llvm/docs/CommandGuide/lit.rst
M llvm/utils/lit/lit/LitConfig.py
M llvm/utils/lit/lit/TestRunner.py
M llvm/utils/lit/lit/cl_arguments.py
M llvm/utils/lit/lit/main.py
A llvm/utils/lit/tests/Inputs/per-test-coverage-by-lit-cfg/lit.cfg
A llvm/utils/lit/tests/Inputs/per-test-coverage-by-lit-cfg/per-test-coverage-by-lit-cfg.py
A llvm/utils/lit/tests/Inputs/per-test-coverage/lit.cfg
A llvm/utils/lit/tests/Inputs/per-test-coverage/per-test-coverage.py
A llvm/utils/lit/tests/per-test-coverage-by-lit-cfg.py
A llvm/utils/lit/tests/per-test-coverage.py
Log Message:
-----------
[LIT] Added an option to llvm-lit to emit the necessary test coverage data, divided per test case
This patch is the first part of https://llvm.org/OpenProjects.html#llvm_patch_coverage.
We have first define a new variable LLVM_TEST_COVERAGE which when set, pass --emit-coverage option to
llvm-lit which will help in setting a unique value to LLVM_PROFILE_FILE for each RUN. So for example
coverage data for test case llvm/test/Analysis/AliasSet/memtransfer.ll will be emitted as
build/test/Analysis/AliasSet/memtransfer.profraw
Reviewed By: hnrklssn
Differential Revision: https://reviews.llvm.org/D154280
More information about the All-commits
mailing list