]> git.ipfire.org Git - thirdparty/tor.git/commit
Coverage support: build with --enable-coverage to have tests run with gcov
authorNick Mathewson <nickm@torproject.org>
Tue, 9 Jul 2013 16:37:11 +0000 (12:37 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 10 Jul 2013 19:22:16 +0000 (15:22 -0400)
commit17e9fc09c31dffdc647385220a14daef5a35273a
tree66b1a0ccb2e176bc2646a25cdd03fd6eb0d90435
parenta3e0a87d951b1323ca542c9b115d5525d0d022c9
Coverage support: build with --enable-coverage to have tests run with gcov

If you pass the --enable-coverage flag on the command line, we build
our testing binaries with appropriate options eo enable coverage
testing.  We also build a "tor-cov" binary that has coverage enabled,
for integration tests.

On recent OSX versions, test coverage only works with clang, not gcc.
So we warn about that.

Also add a contrib/coverage script to actually run gcov with the
appropriate options to generate useful .gcov files.  (Thanks to
automake, the .o files will not have the names that gcov expects to
find.)

Also, remove generated gcda and gcno files on clean.
.gitignore
Makefile.am
changes/fancy_testing
configure.ac
contrib/coverage [new file with mode: 0755]
src/common/include.am
src/or/include.am
src/test/include.am