Introduce product variables to select Java code coverage paths in Make.
Introduce product variables `JavaCoveragePaths` and `JavaCoverageExcludePaths` (resp. populated from environment variables `JAVA_COVERAGE_PATHS` and `JAVA_COVERAGE_EXCLUDE_PATHS`). Use them to control which Java modules are candidate for instrumentation based on their source path. By default (when `JavaCoveragePaths` is empty), have all Java modules be candidate for instrumentation, to preserve the existing behavior. Test: export EMMA_INSTRUMENT=true \ && export EMMA_INSTRUMENT_FRAMEWORK=true \ && export JAVA_COVERAGE_PATHS=art \ && m Bug: 158212027 Bug: 156284897 Change-Id: I5de6eb460709d7d66d81e3432e11f94ff14dd1c9
This commit is contained in:
parent
d160a49df3
commit
17541b9512
1 changed files with 3 additions and 0 deletions
|
@ -110,6 +110,9 @@ $(call add_json_bool, DisableScudo, $(filter true,$(PRODUCT
|
|||
$(call add_json_bool, ClangTidy, $(filter 1 true,$(WITH_TIDY)))
|
||||
$(call add_json_str, TidyChecks, $(WITH_TIDY_CHECKS))
|
||||
|
||||
$(call add_json_list, JavaCoveragePaths, $(JAVA_COVERAGE_PATHS))
|
||||
$(call add_json_list, JavaCoverageExcludePaths, $(JAVA_COVERAGE_EXCLUDE_PATHS))
|
||||
|
||||
$(call add_json_bool, NativeLineCoverage, $(filter true,$(NATIVE_LINE_COVERAGE)))
|
||||
$(call add_json_bool, Native_coverage, $(filter true,$(NATIVE_COVERAGE)))
|
||||
$(call add_json_bool, ClangCoverage, $(filter true,$(CLANG_COVERAGE)))
|
||||
|
|
Loading…
Reference in a new issue