Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b2df375 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Add support for LINE_COVERAGE (1/2)" am: 08cc1418 am: 94647faa

Change-Id: I1e1a1dbf921cd4e51d2fc2b55553899870cb640c
parents 78ec3d4b 94647faa
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1028,8 +1028,12 @@ func (c *deviceConfig) DeviceKernelHeaderDirs() []string {
	return c.config.productVariables.DeviceKernelHeaders
}

func (c *config) NativeLineCoverage() bool {
	return Bool(c.productVariables.NativeLineCoverage)
}

func (c *deviceConfig) NativeCoverageEnabled() bool {
	return Bool(c.config.productVariables.Native_coverage)
	return Bool(c.config.productVariables.Native_coverage) || Bool(c.config.productVariables.NativeLineCoverage)
}

func (c *deviceConfig) ClangCoverageEnabled() bool {
+1 −0
Original line number Diff line number Diff line
@@ -252,6 +252,7 @@ type productVariables struct {
	ClangTidy  *bool   `json:",omitempty"`
	TidyChecks *string `json:",omitempty"`

	NativeLineCoverage   *bool    `json:",omitempty"`
	Native_coverage      *bool    `json:",omitempty"`
	ClangCoverage        *bool    `json:",omitempty"`
	CoveragePaths        []string `json:",omitempty"`