Ability to use non-standard FreeBSD gcov tool
authorNHOrus <jy6x2b32pie9@yahoo.com>
Sun, 2 Jul 2017 06:49:18 +0000 (09:49 +0300)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 2 Jul 2017 14:16:13 +0000 (10:16 -0400)
tests/Makefile

index be71aa232e124dca580c220964084443c03f44b3..130e44cfe8cfcdd998f74392b259cdfeb9bde011 100644 (file)
@@ -4,6 +4,7 @@
 # scripts from parent directory.  Note that using $PWD seems to fail
 # here under Gitlab's CI environment.
 PATH := $(realpath ..):$(realpath .):${PATH}
+GCOV?=gcov
 
 # Defeat annoying behavior under Mac OS X - builtin echo doesn't do -n
 ECHO := /bin/echo
@@ -20,7 +21,7 @@ check: savecheck regress
        @-advent -l /dev/null <pitfall.log >/dev/null
 
 coverage: check
-       lcov -t "advent" -o ../advent.info -c -d ..
+       lcov -t "advent" -o ../advent.info -c -d .. --gcov-tool=$(GCOV)
        genhtml -o ../coverage/ ../advent.info
 
 .SUFFIXES: .chk