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 /src/backend/common.mk | |
parent | 579d9a520135078d96eef8335aed399833d33b7e (diff) | |
download | postgresql-11f53b1063e796dbb766b7ad3fd46e98806bea43.tar.gz |
Code coverage testing with gcov. Documentation is in the regression test
chapter.
Author: Michelle Caisse <Michelle.Caisse@Sun.COM>
Diffstat (limited to 'src/backend/common.mk')
-rw-r--r-- | src/backend/common.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/backend/common.mk b/src/backend/common.mk index 82a9ab6fc1..c617c67276 100644 --- a/src/backend/common.mk +++ b/src/backend/common.mk @@ -1,7 +1,7 @@ # # Common make rules for backend # -# $PostgreSQL: pgsql/src/backend/common.mk,v 1.7 2008/03/17 18:24:56 petere Exp $ +# $PostgreSQL: pgsql/src/backend/common.mk,v 1.8 2008/09/05 12:11:18 petere Exp $ # # When including this file, set OBJS to the object files created in @@ -46,3 +46,9 @@ ifdef SUBDIRS for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean || exit; done endif rm -f $(subsysfilename) $(OBJS) + + +coverage: $(gcda_files:.gcda=.c.gcov) lcov.info +ifdef SUBDIRS + for dir in $(SUBDIRS); do $(MAKE) -C $$dir coverage || exit; done +endif |