From fa87c19989d1797c7f52a1160a09d2900816e382 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 10 Aug 2017 23:33:47 -0400 Subject: [PATCH v2 4/9] 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. --- src/Makefile.global.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Makefile.global.in b/src/Makefile.global.in index c95cff543b..ec2ae8f45d 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -875,6 +875,8 @@ ifeq ($(enable_coverage), yes) LCOV += --gcov-tool $(GCOV) LCOVFLAGS = --no-external +GENHTML_FLAGS = --show-details --legend +GENHTML_TITLE = PostgreSQL $(VERSION) gcno_files = $(shell find . -name '*.gcno' -print) @@ -888,7 +890,7 @@ lcov_test.info: $(gcda_files) coverage-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 $@ .PHONY: coverage coverage-html -- 2.14.1