summaryrefslogtreecommitdiff
path: root/src/common/test.h
AgeCommit message (Collapse)Author
2009-09-23Refactor unit tests to use the tinytest framework.Nick Mathewson
"Tinytest" is a minimalist C unit testing framework I wrote for Libevent. It supports some generally useful features, like being able to run separate unit tests in their own processes. I tried to do the refactoring to change test.c as little as possible. Thus, we mostly don't call the tinytest macros directly. Instead, the test.h header is now a wrapper on tinytest.h to make our existing test_foo() macros work. The next step(s) here will be: - To break test.c into separate files, each with its own test group. - To look into which things we can test - To refactor the more fiddly tests to use the tinytest macros directly and/or run forked. - To see about writing unit tests for things we couldn't previously test without forking.
2009-05-02Update copyright to 2009.Karsten Loesing
2009-01-13Fix a leak memory on the failing case of test_memeq_hexNick Mathewson
svn:r18094
2009-01-04Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson
The subversion $Id$ fields made every commit force a rebuild of whatever file got committed. They were not actually useful for telling the version of Tor files in the wild. svn:r17867
2008-12-29Use a consistent naming standard for header file guard macros, taking care ↵Nick Mathewson
not to collide with any system headers. This tripped us up on Android. svn:r17805
2008-12-22Make freelist_len in memarea.c static; document a few variables.Nick Mathewson
svn:r17741
2008-12-22Add DOCDOC entries for undocumented static and global variables.Nick Mathewson
svn:r17739
2008-12-11Change test_memeq macro to not leak memory. Addresses coverity CID 47.Nick Mathewson
svn:r17577
2008-09-09Refactor unit test macros and tor_free_all() logic a bit so as to make it ↵Nick Mathewson
easier to free memory on failing tests, in order to suppress scanner warnings and to make dmalloc() usable with tests. svn:r16816
2008-03-25 r19041@catbus: nickm | 2008-03-25 16:20:42 -0400Nick Mathewson
More unit tests to improve coverage. svn:r14185
2008-03-25 r19039@catbus: nickm | 2008-03-25 12:15:58 -0400Nick Mathewson
Add some unit tests, particularly for AES counter mode. svn:r14180
2008-02-27 r14516@tombo: nickm | 2008-02-27 03:10:26 -0500Nick Mathewson
Write some unit tests for a few functions and cases that needed them. svn:r13751
2008-02-08 r17968@catbus: nickm | 2008-02-07 14:11:02 -0500Nick Mathewson
Clean up IPv6-testing code in test.c; resolve a bunch of XXX020s. svn:r13425
2008-02-07Update some copyright notices: it is now 2008.Nick Mathewson
svn:r13412
2007-12-12clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine
svn:r12786
2007-08-08 r14093@catbus: nickm | 2007-08-08 01:49:54 -0400Nick Mathewson
Include fewer redundant headers; use the compiler search paths better. svn:r11060
2007-06-17 r13477@catbus: nickm | 2007-06-17 14:22:03 -0400Nick Mathewson
Sun CC likes to give warnings for the do { } while(0) construction for making statement-like macros. Define STMT_BEGIN/STMT_END macros that do the right thing, and use them everywhere. svn:r10645
2007-06-13 r13384@catbus: nickm | 2007-06-13 13:53:26 -0400Nick Mathewson
make test_* functions stop conflicting with variables named v1 and v2. svn:r10584
2007-03-06 r12468@Kushana: nickm | 2007-03-06 15:24:00 -0500Nick Mathewson
More unit tests: gcov is fun. svn:r9748
2007-02-12 r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson
Update copyright dates. svn:r9570
2006-02-09Happy new year!Roger Dingledine
svn:r5949
2005-08-12Make GCC very happy, even with lots of warnings set. Also, try to fix some ↵Nick Mathewson
reported Solaris x86 warnings. svn:r4770
2005-06-11flesh out the source file descriptions for doxygenRoger Dingledine
svn:r4404
2005-06-09Change end-of-file NLNL convention. It turns out arma I and I agree.Nick Mathewson
svn:r4382
2005-06-09New whitespace normalization rule: no blank line at EOF.Nick Mathewson
svn:r4378
2005-04-03Fix unterminated commentNick Mathewson
svn:r3991
2005-04-01update copyright notices.Nick Mathewson
svn:r3982
2004-12-22Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's name outNick Mathewson
of the warning messages. svn:r3199
2004-11-29Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson
every file. svn:r3019
2004-11-28Normalize space: add one between every control keyword and control clause.Nick Mathewson
svn:r3003
2004-11-26remove emacs droppings, since nick says he doesn't need them anymoreRoger Dingledine
svn:r2989
2004-11-02Use a stricter set of warnings; make them all pass.Nick Mathewson
svn:r2645
2004-05-10doxygen markup for common/*.hRoger Dingledine
svn:r1840
2004-04-26The dots are there so you see test doing something. Therefore we should ↵Peter Palfrader
flush them after printing svn:r1720
2004-03-19Add some wrappers around SPLAY_* for the common map-from-string-to-X case.Nick Mathewson
It will probably be less blindingly fast than using SPLAY_* directly, but only slightly so. svn:r1306
2004-03-01make 'make test' exit(1) if a test fails.Nick Mathewson
svn:r1190
2003-12-13clean up some copyrightsRoger Dingledine
svn:r907
2003-10-08Update LICENSE and copyright dates.Nick Mathewson
svn:r560
2003-08-12Start of port to win32. Missing are:Nick Mathewson
- signal support - forking for DNS farm - changes for async IO - daemonizing In other words, some files still don't build, and the ones that do build, do nonblocking IO incorrectly. I'm also not checking in the project files till I have a good place for them. svn:r380
2003-05-06Refactor directories; add unit tests; add router keywordNick Mathewson
svn:r266
2003-04-17Fix test.h to have once-only evalutation of argumentsNick Mathewson
svn:r243
2003-04-16Tests for crypto; more tests for buffersNick Mathewson
svn:r234
2003-04-15Introduce a few unit tests (from older code), refactor compression ↵Nick Mathewson
setup/teardown svn:r232
2003-04-07First test addedNick Mathewson
svn:r226