-
- Downloads
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.
Showing
- .gitignore 2 additions, 0 deletions.gitignore
- Makefile.am 8 additions, 0 deletionsMakefile.am
- changes/fancy_testing 4 additions, 0 deletionschanges/fancy_testing
- configure.ac 12 additions, 2 deletionsconfigure.ac
- contrib/coverage 13 additions, 0 deletionscontrib/coverage
- src/common/include.am 4 additions, 0 deletionssrc/common/include.am
- src/or/include.am 16 additions, 0 deletionssrc/or/include.am
- src/test/include.am 2 additions, 0 deletionssrc/test/include.am
contrib/coverage
0 → 100755
Please register or sign in to comment