[PATCH] D154280: [LIT] Added an option to llvm-lit to emit the necessary test coverage data, divided per test case
Shivam Gupta via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 1 03:48:03 PDT 2023
xgupta created this revision.
xgupta added reviewers: hnrklssn, Endill, jdenny, jhenderson.
Herald added a subscriber: delcypher.
Herald added a project: All.
xgupta updated this revision to Diff 536522.
xgupta added a comment.
xgupta updated this revision to Diff 536523.
xgupta published this revision for review.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
minor update
xgupta added a comment.
.
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
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D154280
Files:
llvm/CMakeLists.txt
llvm/cmake/modules/HandleLLVMOptions.cmake
llvm/docs/CMake.rst
llvm/docs/CommandGuide/lit.rst
llvm/utils/lit/lit/LitConfig.py
llvm/utils/lit/lit/TestRunner.py
llvm/utils/lit/lit/cl_arguments.py
llvm/utils/lit/lit/main.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154280.536523.patch
Type: text/x-patch
Size: 7560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230701/be186092/attachment.bin>
More information about the llvm-commits
mailing list