summaryrefslogtreecommitdiff
path: root/rust/testing.go
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2020-04-09 09:56:02 -0400
committerIvan Lozano <ivanlozano@google.com>2020-05-05 10:30:15 -0400
commita0cd8f9acb8c5c04c1082cc980cc8cca28aff5a9 (patch)
treef69f7651add1ce0e4089711fa207b4741815c589 /rust/testing.go
parentb8bb5d05ce523b0dc88085313f6514910954db41 (diff)
Add gcov coverage support to Rust modules.
This adds gcov coverage support for Rust device library and binary modules (including test modules). Support is provided to pass Rust static library gcno files to CC modules and visa versa. Additional changes: * Begin mutator added for Rust modules. * SuffixInList added to android package. * CoverageEnabled added to Coverage interface. * CoverageFiles added to LinkableLibrary interface. * Fix in coverage mutator for non-CC modules which marked the wrong variant as the coverage variant. * Added coverage libraries to the cc.GatherRequiredDepsForTest. Bug: 146448203 Test: NATIVE_COVERAGE=true COVERAGE_PATHS='*' m -j <rust_module> Change-Id: If20728bdde42a1dd544a35a40f0d981b80a5835f
Diffstat (limited to 'rust/testing.go')
-rw-r--r--rust/testing.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/testing.go b/rust/testing.go
index aad4ffe35..09008a85f 100644
--- a/rust/testing.go
+++ b/rust/testing.go
@@ -98,6 +98,7 @@ func CreateTestContext() *android.TestContext {
// rust mutators
ctx.BottomUp("rust_libraries", LibraryMutator).Parallel()
ctx.BottomUp("rust_unit_tests", TestPerSrcMutator).Parallel()
+ ctx.BottomUp("rust_begin", BeginMutator).Parallel()
})
return ctx