Lines Matching full:coverage
15 # coverage support. Also defines CODE_COVERAGE_RULES which should be
19 # --enable-code-coverage option, which defaults to being disabled.
25 # coverage is enabled.
41 # This results in a "check-code-coverage" rule being added to any
43 # has been configured with --enable-code-coverage). Running `make
44 # check-code-coverage` in that directory will run the module's test suite
45 # (`make check`) and build a code coverage report detailing the code which
83 dnl Check for --enable-code-coverage
88 [AS_HELP_STRING([--with-gcov[=GCOV]], [use given GCOV for coverage (GCOV=gcov).])],
92 AC_MSG_CHECKING([whether to build with code coverage support])
93 AC_ARG_ENABLE([code-coverage],
94 AS_HELP_STRING([--enable-code-coverage],
95 [Whether to enable code coverage support]),,
108 [AC_MSG_ERROR([gcov is needed to do coverage])])
113 AC_MSG_ERROR([not compiling with gcc, which is required for gcov code coverage])
120 AC_MSG_ERROR([To enable code coverage reporting you must have lcov installed])
127 dnl Build the code coverage flags
130 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
131 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
143 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
149 …AGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-…
153 clean: code-coverage-clean
154 distclean: code-coverage-clean
155 code-coverage-clean:
162 @echo "Need to reconfigure with --enable-code-coverage"
169 # Code coverage
172 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
176 # by lcov for code coverage. (Default:
177 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
178 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
180 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
181 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
209 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
210 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
245 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
247 # Capture code coverage data
248 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
250 # Hook rule executed before code-coverage-capture, overridable by the user
251 code-coverage-capture-hook:
259 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
261 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean