numpy/numpy — pull request #3979 by pv (2013-10-25 17:54:10+00:00)
Title: MAINT: runtests: enable generation of C code coverage info via gcov

Recent GCC versions apparently support gcov also in shared libraries. This makes it fairly simple to get C code coverage information for Numpy.

This PR adds options `--gcov` and `--lcov` to generate code coverage info also for the C code in Numpy.
The [lcov](http://ltp.sourceforge.net/coverage/lcov.php) tool is required for pretty HTML output.

Seeing how much of the C and Python code is covered by the test suite is as simple as
```
python runtests --gcov --coverage
python runtests --lcov-html
firefox build/lcov/index.html build/coverage/index.html & disown
```
The hard-coded GCC compiler flags should be fine on most Linux platforms at the least.