mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-04 12:16:10 +00:00
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:
parent
3d17519701
commit
98bd83a8fc
@ -804,6 +804,7 @@ func (r *runner) runServer(ctx context.Context, id int, caseIndices <-chan int,
|
|||||||
|
|
||||||
if resp.CoverageData != "" {
|
if resp.CoverageData != "" {
|
||||||
coverage, covErr := r.covEnv.Import(resp.CoverageData)
|
coverage, covErr := r.covEnv.Import(resp.CoverageData)
|
||||||
|
os.Remove(resp.CoverageData)
|
||||||
if covErr != nil {
|
if covErr != nil {
|
||||||
if res.message != "" {
|
if res.message != "" {
|
||||||
res.message += "\n"
|
res.message += "\n"
|
||||||
@ -1500,5 +1501,8 @@ func SplitCTSQuery(testcase string) cov.Path {
|
|||||||
s = e + 1
|
s = e + 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if end := testcase[s:]; end != "" {
|
||||||
|
out = append(out, end)
|
||||||
|
}
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,8 @@ if (LLVM_SOURCE_DIR)
|
|||||||
LLVMProfileData
|
LLVMProfileData
|
||||||
LLVMCoverage
|
LLVMCoverage
|
||||||
)
|
)
|
||||||
|
|
||||||
|
common_compile_options(turbo-cov)
|
||||||
else (LLVM_SOURCE_DIR)
|
else (LLVM_SOURCE_DIR)
|
||||||
message("not building turbo-cov as LLVM_SOURCE_DIR is undefined")
|
message("not building turbo-cov as LLVM_SOURCE_DIR is undefined")
|
||||||
endif (LLVM_SOURCE_DIR)
|
endif (LLVM_SOURCE_DIR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user