From 7b5cc257c2c985b2259f211e9d2fd0ecaa4e134b Mon Sep 17 00:00:00 2001 From: joe Date: Sun, 31 Oct 2004 11:53:35 +0000 Subject: * Makefile.in (uncover): New target. (cover): Adapt for modern gcc. * src/Makefile.in (clean): Clean more. * test/Makefile.in (clean): Clean more. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@343 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845 --- Makefile.in | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index d0acd68..81ddc34 100644 --- a/Makefile.in +++ b/Makefile.in @@ -45,6 +45,7 @@ transform = @program_transform_name@ LIBTOOL = @LIBTOOL@ XMLTO = xmlto +GCOV = gcov # The headers to distribute - making up the public interface of neon DIST_HEADERS = ne_request.h ne_session.h ne_utils.h ne_uri.h ne_socket.h \ @@ -60,9 +61,16 @@ check: subdirs # Useful for doing coverage analysis; use e.g.: # make TESTS=string-tests MODULE=ne_string cover cover: subdirs - rm -f src/$(MODULE).da - cd test && $(MAKE) check - cd src; gcov -cb $(MODULE) + @rm -f src/$(MODULE).*da + @cd test && $(MAKE) check + @cd src && $(GCOV) -cb $(MODULE) + +# as per 'cover' target; prints list of functions without 100% coverage +uncover: subdirs + @rm -f src/$(MODULE).*da + @cd test && $(MAKE) check + @cd src && $(GCOV) -cb $(MODULE) + @grep ^function src/$(MODULE).gcov | grep -v 'executed 100' | sort -nr -k 9,9 subdirs: cd src && $(MAKE) -- cgit v1.2.1