Lines Matching full:coverage
13 # (program or library) which should be built with code coverage support.
17 # corresponds to the value of the --enable-code-coverage option, which
24 # coverage is enabled.
38 # This results in a "check-code-coverage" rule being added to any
40 # has been configured with --enable-code-coverage). Running `make
41 # check-code-coverage` in that directory will run the module's test suite
42 # (`make check`) and build a code coverage report detailing the code which
73 dnl Check for --enable-code-coverage
78 [AS_HELP_STRING([--with-gcov[=GCOV]], [use given GCOV for coverage (GCOV=gcov).])],
82 AC_MSG_CHECKING([whether to build with code coverage support])
83 AC_ARG_ENABLE([code-coverage],
84 AS_HELP_STRING([--enable-code-coverage],
85 [Whether to enable code coverage support]),,
98 [AC_MSG_ERROR([gcov is needed to do coverage])])
103 AC_MSG_ERROR([not compiling with gcc, which is required for gcov code coverage])
123 …lcov_msg="To enable code coverage reporting you must have one of the following lcov versions insta…
139 dnl Build the code coverage flags
140 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
148 # Code coverage
151 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
154 # by lcov for code coverage. (Default:
155 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
156 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
158 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
174 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
175 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
187 check-code-coverage:
190 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
192 @echo "Need to reconfigure with --enable-code-coverage"
195 # Capture code coverage data
196 code-coverage-capture: code-coverage-capture-hook
201 …AGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-…
204 @echo "Need to reconfigure with --enable-code-coverage"
207 # Hook rule executed before code-coverage-capture, overridable by the user
208 code-coverage-capture-hook:
211 clean: code-coverage-clean
212 code-coverage-clean:
222 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
224 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean