1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-11-21 23:32:17 +00:00

build: Add a code coverage option

Configure with:
  ./configure --enable-code-coverage
Show coverage output with:
  make code-coverage-capture

Built on m4/ax_code_coverage.m4 from the GNU autoconf archive
to provide the macros to check for presence of gcov + lcov;
upstream macro modified to:
 - Remove use of $(AM_DEFAULT_VERBOSITY) , as earlier versions of
   autoconf (such as the one used by default on Travis) do not have this.
 - Rather than automatically defining CODE_COVERAGE_RULES to be a set
   of makefile rules that use ifeq/endif (which is GNU make-specific),
   instead only define CODE_COVERAGE_RULES if coverages is turned on,
   and in that case don't use conditionals in the makefile.
This commit is contained in:
David Drysdale
2015-09-29 10:07:18 +01:00
parent 7972adc5d7
commit 1b6905cc7f
4 changed files with 231 additions and 0 deletions

6
.gitignore vendored
View File

@ -24,12 +24,18 @@ ltmain.sh
compile
libcares.pc
missing
test-driver
c-ares-*.tar.gz
INSTALL
install-sh
*.o
*.lo
*.la
*.gcno
*.gcda
*.gcov
c-ares---coverage.info
c-ares---coverage
mkinstalldirs
tags
TAGS