diff options
author | Georg Brandl <georg@python.org> | 2008-05-18 11:46:51 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-18 11:46:51 (GMT) |
commit | 405b5f316acaef0152f93122db7f0b257a0a6fce (patch) | |
tree | 04e7772b454d99d6ea7afc5105eccbaf27bf71ac /README | |
parent | 0bb0299ad8c538eb6d24644b8305c45c110d6c4f (diff) | |
download | cpython-405b5f316acaef0152f93122db7f0b257a0a6fce.zip cpython-405b5f316acaef0152f93122db7f0b257a0a6fce.tar.gz cpython-405b5f316acaef0152f93122db7f0b257a0a6fce.tar.bz2 |
GHOP #217: add support for compiling Python with coverage checking enabled.
Diffstat (limited to 'README')
-rw-r--r-- | README | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -917,6 +917,26 @@ libraries. The Makefile/Setup mechanism can be used to compile and link most extension modules statically. +Coverage checking +----------------- + +For C coverage checking using gcov, run "make coverage". This will +build a Python binary with profiling activated, and a ".gcno" and +".gcda" file for every source file compiled with that option. With +the built binary, now run the code whose coverage you want to check. +Then, you can see coverage statistics for each individual source file +by running gcov, e.g. + + gcov -o Modules zlibmodule + +This will create a "zlibmodule.c.gcov" file in the current directory +containing coverage info for that source file. + +This works only for source files statically compiled into the +executable; use the Makefile/Setup mechanism to compile and link +extension modules you want to coverage-check statically. + + Testing ------- |