[Python-checkins] cpython (3.6): lcov: ignore more 3rd party code and internal test/debug/dummy files

christian.heimes python-checkins at python.org
Wed Sep 21 08:56:01 EDT 2016


https://hg.python.org/cpython/rev/03f76eaf83c4
changeset:   103989:03f76eaf83c4
branch:      3.6
parent:      103987:3ab4a374b5f0
user:        Christian Heimes <christian at python.org>
date:        Wed Sep 21 14:55:43 2016 +0200
summary:
  lcov: ignore more 3rd party code and internal test/debug/dummy files

files:
  Makefile.pre.in |  10 +++++++++-
  1 files changed, 9 insertions(+), 1 deletions(-)


diff --git a/Makefile.pre.in b/Makefile.pre.in
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -521,15 +521,23 @@
 	    --base-directory $(realpath $(abs_builddir)) \
 	    --path $(realpath $(abs_srcdir)) \
 	    --output-file $(COVERAGE_INFO)
-	: # remove 3rd party modules and system headers
+	: # remove 3rd party modules, system headers and internal files with
+	: # debug, test or dummy functions.
 	@lcov --remove $(COVERAGE_INFO) \
+	    '*/Modules/_blake2/impl/*' \
 	    '*/Modules/_ctypes/libffi*/*' \
 	    '*/Modules/_decimal/libmpdec/*' \
+	    '*/Modules/_sha3/kcp/*' \
 	    '*/Modules/expat/*' \
 	    '*/Modules/zlib/*' \
 	    '*/Include/*' \
+	    '*/Modules/xx*.c' \
+	    '*/Parser/listnode.c' \
+	    '*/Python/pyfpe.c' \
+	    '*/Python/pystrcmp.c' \
 	    '/usr/include/*' \
 	    '/usr/local/include/*' \
+	    '/usr/lib/gcc/*' \
 	    --output-file $(COVERAGE_INFO)
 	@genhtml $(COVERAGE_INFO) --output-directory $(COVERAGE_REPORT) \
 	    $(COVERAGE_REPORT_OPTIONS)

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list