[tor-dev] Tor debugging
Tim Wilson-Brown - teor
teor2345 at gmail.com
Thu Apr 7 21:18:07 UTC 2016
> On 8 Apr 2016, at 04:07, SMTP Test <simplesmtptest123 at gmail.com> wrote:
> Hi all,
> I am working on a project that needs to do some modifications on the source code of Tor, to add functionalities to Tor relay. To debug I used chutney to setup Tor network locally, and checked the logs of the relay. But it is still painful and slow: I need to restart the script, and wait the network to be up every time I make changes. My question is: is there any fast way to test/debug the functionalities of Tor relay?
It depends what feature you're working on.
We typically write unit tests to test individual functions or well-defined components.
See tor/src/test for the existing source files.
The unit tests can be run using "make test" or for a more comprehensive set, "make check".
You can even run individual tests by running the test binary with the test name.
chutney is slow, but it's used for whole-program and whole-network integration tests.
Tim Wilson-Brown (teor)
teor2345 at gmail dot com
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the tor-dev