]> granicus.if.org Git - postgresql/commitdiff
Add PostgreSQL version to coverage output
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 11 Aug 2017 03:33:47 +0000 (23:33 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 29 Sep 2017 12:54:47 +0000 (08:54 -0400)
Also make overriding the title easier.  That helps telling where the
report came from and labeling different variants of a report.

Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
src/Makefile.global.in

index c0a88c915270292495ab88f62af368a0a656fa36..1a0faf9023df99aa1881ee2a31e669269f1c0292 100644 (file)
@@ -893,9 +893,12 @@ coverage: $(local_gcda_files:.gcda=.c.gcov)
 .PHONY: coverage-html
 coverage-html: coverage-html-stamp
 
+GENHTML_FLAGS = --show-details --legend
+GENHTML_TITLE = PostgreSQL $(VERSION)
+
 coverage-html-stamp: lcov_base.info lcov_test.info
        rm -rf coverage
-       $(GENHTML) --show-details --legend --output-directory=coverage --title=PostgreSQL --num-spaces=4 --prefix=$(abs_top_srcdir) $^
+       $(GENHTML) $(GENHTML_FLAGS) -o coverage --title='$(GENHTML_TITLE)' --num-spaces=4 --prefix='$(abs_top_srcdir)' $^
        touch $@
 
 LCOV += --gcov-tool $(GCOV)