diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-07-30 13:04:19 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-07-30 13:04:19 +0000 |
commit | c4bf882d437018d8230cd086ca3470dfd6df8283 (patch) | |
tree | 497b97c6a2de5bc8220fa4040436738689847f5d /doc/HACKING | |
parent | 507b01357affd0b58ac0721a7b5001d38a600c6a (diff) | |
download | tor-c4bf882d437018d8230cd086ca3470dfd6df8283.tar tor-c4bf882d437018d8230cd086ca3470dfd6df8283.tar.gz |
r17433@tombo: nickm | 2008-07-29 10:58:07 -0400
Docment gcov in HACKING
svn:r16254
Diffstat (limited to 'doc/HACKING')
-rw-r--r-- | doc/HACKING | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/HACKING b/doc/HACKING index 3b914722a..13ea0bac6 100644 --- a/doc/HACKING +++ b/doc/HACKING @@ -2,7 +2,7 @@ 0. The buildbot. http://tor-buildbot.freehaven.net:8010/ - + - Down for unknown reasons, ioerror will look into this. 0.1. Useful command-lines that are non-trivial to reproduce but can @@ -14,6 +14,19 @@ dmalloc -l ~/dmalloc.log valgrind --leak-check=yes --error-limit=no --show-reachable=yes src/or/tor +0.2. Running gcov for unit test coverage + + make clean + make CFLAGS='-g -fprofile-arcs -ftest-coverage' + ./src/or/test + cd src/common; gcov *.[ch] + cd ../or; gcov *.[ch] + + Then, look at the .gcov files. '-' before a line means that the + compiler generated no code for that line. '######' means that the + line was never reached. Lines with numbers were called that number + of times. + 1. Coding conventions 1.0. Whitespace and C conformance |