diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2008-09-05 12:11:18 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2008-09-05 12:11:18 +0000 |
commit | 11f53b1063e796dbb766b7ad3fd46e98806bea43 (patch) | |
tree | e77ab3e271f7d464e88e481715997a09bde14e65 /GNUmakefile.in | |
parent | 579d9a520135078d96eef8335aed399833d33b7e (diff) | |
download | postgresql-11f53b1063e796dbb766b7ad3fd46e98806bea43.tar.gz postgresql-11f53b1063e796dbb766b7ad3fd46e98806bea43.zip |
Code coverage testing with gcov. Documentation is in the regression test
chapter.
Author: Michelle Caisse <Michelle.Caisse@Sun.COM>
Diffstat (limited to 'GNUmakefile.in')
-rw-r--r-- | GNUmakefile.in | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/GNUmakefile.in b/GNUmakefile.in index c71f8a60883..4335c12b002 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -1,7 +1,7 @@ # # PostgreSQL top level makefile # -# $PostgreSQL: pgsql/GNUmakefile.in,v 1.47 2008/03/18 16:24:50 petere Exp $ +# $PostgreSQL: pgsql/GNUmakefile.in,v 1.48 2008/09/05 12:11:17 petere Exp $ # subdir = @@ -63,6 +63,25 @@ GNUmakefile: GNUmakefile.in $(top_builddir)/config.status ########################################################################## +coverage: + $(MAKE) -C src/backend $@ + +.PHONY: coverage-html +coverage-html: coverage + rm -rf coverage + mkdir coverage + $(GENHTML) --show-details --legend --output-directory=coverage --title=PostgreSQL --num-spaces=4 `find src/backend -name lcov.info -print` + +ifeq ($(enable_coverage),yes) +clean distclean maintainer-clean: clean-coverage-local +.PHONY: clean-coverage-local +clean-coverage-local: + rm -rf coverage +endif + + +########################################################################## + distdir = postgresql-$(VERSION) dummy = =install= garbage = =* "#"* ."#"* *~* *.orig *.rej core postgresql-* |