summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2017-08-11 03:33:47 +0000
committerPeter Eisentraut2017-09-29 12:54:47 +0000
commitd2773f9bcd980cf6ed720928cd0700196608ef19 (patch)
tree68fa4f6d5b40c056b8057bd93f4f4ff5c66ee80e
parent4bb5a2536bcff5dfef9242818979faaa0659b1af (diff)
Add PostgreSQL version to coverage output
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>
-rw-r--r--src/Makefile.global.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index c0a88c91527..1a0faf9023d 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -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)