summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2016-09-21 12:55:43 (GMT)
committerChristian Heimes <christian@python.org>2016-09-21 12:55:43 (GMT)
commit79f9d4ff97162bd93679627bf5c8ed2dd73443ea (patch)
tree21159eb0b172d225c6826c703d80761a5554b644 /Makefile.pre.in
parentb00e00c339cec1438a3764001b994c0a274a49c1 (diff)
downloadcpython-79f9d4ff97162bd93679627bf5c8ed2dd73443ea.zip
cpython-79f9d4ff97162bd93679627bf5c8ed2dd73443ea.tar.gz
cpython-79f9d4ff97162bd93679627bf5c8ed2dd73443ea.tar.bz2
lcov: ignore more 3rd party code and internal test/debug/dummy files
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 3ddeedf..292abb3 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -521,15 +521,23 @@ coverage-lcov:
--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)