tools: More CTS coverage fixes

* Use common_compile_options(turbo-cov) to fix RTTI linker errors on macOS + debug builds.
* Delete the .profraw files after they've been consumed.
* Include the test-case parameters in the coverage information

Change-Id: I02c6f408ed6e65c6f7e9eb1b4cd8443e4cfa7939
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117882
Kokoro: Ben Clayton <bclayton@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton 2023-02-01 15:02:56 +00:00 committed by Dawn LUCI CQ
parent 3d17519701
commit 98bd83a8fc
2 changed files with 6 additions and 0 deletions

View File

@ -804,6 +804,7 @@ func (r *runner) runServer(ctx context.Context, id int, caseIndices <-chan int,
if resp.CoverageData != "" {
coverage, covErr := r.covEnv.Import(resp.CoverageData)
os.Remove(resp.CoverageData)
if covErr != nil {
if res.message != "" {
res.message += "\n"
@ -1500,5 +1501,8 @@ func SplitCTSQuery(testcase string) cov.Path {
s = e + 1
}
}
if end := testcase[s:]; end != "" {
out = append(out, end)
}
return out
}

View File

@ -34,6 +34,8 @@ if (LLVM_SOURCE_DIR)
LLVMProfileData
LLVMCoverage
)
common_compile_options(turbo-cov)
else (LLVM_SOURCE_DIR)
message("not building turbo-cov as LLVM_SOURCE_DIR is undefined")
endif (LLVM_SOURCE_DIR)