diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2004-10-31 11:53:35 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2004-10-31 11:53:35 +0000 |
commit | 7b5cc257c2c985b2259f211e9d2fd0ecaa4e134b (patch) | |
tree | f223a7fdadb8f160d594debcf24c9ba0b9611186 /Makefile.in | |
parent | d70f7da1f75e0d7bdedd3eedd7d293309bb2e802 (diff) | |
download | neon-7b5cc257c2c985b2259f211e9d2fd0ecaa4e134b.tar.gz |
* 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
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 14 |
1 files changed, 11 insertions, 3 deletions
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) |