summaryrefslogtreecommitdiff
path: root/src/or/test.c
AgeCommit message (Collapse)Author
2008-11-05The chunk_size field in memarea_t was never actually set. Remove the whole ↵Nick Mathewson
thing. svn:r17195
2008-11-05Fix a compile error found under pcc. It wants single-quites to be escaped ↵Nick Mathewson
in strings, it seems. svn:r17191
2008-11-03Fix unit test failure related to intro point parsing.Nick Mathewson
svn:r17188
2008-09-26Make tests pass again by adding an opt hidden-service-dir to the example ↵Nick Mathewson
routerinfo output. svn:r16980
2008-09-25Make it easier for dmalloc to see if keys are leaking; remove a test-only ↵Nick Mathewson
key leak. svn:r16965
2008-09-25More test memory-management fixesNick Mathewson
svn:r16963
2008-09-24Split test_crypto() into manageable pieces.Nick Mathewson
svn:r16959
2008-09-10Fix more actual test leaksNick Mathewson
svn:r16831
2008-09-10Make buffer unit tests handle resource leaks properly.Nick Mathewson
svn:r16823
2008-09-10Make more unit tests handle resource leaks properly.Nick Mathewson
svn:r16822
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-08-19Apply proposal 121 patch 3, with minor tweaks and a few comments.Nick Mathewson
svn:r16598
2008-08-14If we are lucky the whitespace nazis will not have noticed these things yetPeter Palfrader
svn:r16549
2008-08-14Having a reject-all policy summarized with a lack of summary is stupid. ↵Peter Palfrader
Explicitly mention them as reject 1-65535. svn:r16543
2008-08-14testsuite: Now that we add (pretty useless, but still) routerinfos to the ↵Peter Palfrader
routerlist for every one of our routerstatuses in the votes we pass again. yay svn:r16542
2008-08-14Disable test suite for todayPeter Palfrader
svn:r16539
2008-08-13Fix an overflow when counting rejects for *, truncate exit summaries after ↵Peter Palfrader
1000 chars svn:r16530
2008-08-13Think of the poor children in Antarctica who still have to work on 4" screensPeter Palfrader
svn:r16528
2008-08-13A few testcases for policy summariesPeter Palfrader
svn:r16527
2008-08-07 r17666@tombo: nickm | 2008-08-07 15:12:30 -0400Nick Mathewson
Make tor_addr_from_sockaddr also give away the port in a useful format svn:r16458
2008-08-05 r17641@31-33-44: nickm | 2008-08-05 16:07:53 -0400Nick Mathewson
Initial conversion of uint32_t addr to tor_addr_t addr in connection_t and related types. Most of the Tor wire formats using these new types are in, but the code to generate and use it is not. This is a big patch. Let me know what it breaks for you. svn:r16435
2008-07-29 r17426@tombo: nickm | 2008-07-28 20:34:03 -0400Nick Mathewson
More test coverage for tor_addr_t; fix a couple of bugs. svn:r16234
2008-07-25 r17391@pc-10-8-1-079: nickm | 2008-07-25 17:11:17 +0200Nick Mathewson
Tor_addr_compare did a semantic comparison, such that ::1.2.3.4 and 1.2.3.4 were "equal". we sometimes need an exact comparison. Add a feature to do that. svn:r16210
2008-07-24 r17346@aud-055: nickm | 2008-07-24 15:37:19 +0200Nick Mathewson
Make generic address manipulation functions work better. Switch address policy code to use tor_addr_t, so it can handle IPv6. That is a good place to start. svn:r16178
2008-07-24 r17337@aud-055: nickm | 2008-07-24 10:17:43 +0200Nick Mathewson
Refactor the is_vote field of networkstatus_t to add a third possibility ("opinion") in addition to vote and opinion. First part of implementing proposal 147. svn:r16166
2008-07-16Stop trying to detect versions of Tor on the server-side older than ↵Nick Mathewson
0.1.1.15-rc; they simply do not work any more. Also add comment about how or_is_obsolete is a terrible field name. svn:r15982
2008-06-13Make unit tests pass againPeter Palfrader
svn:r15237
2008-06-04Make unit tests pass again: new geoip behavior had freaked out.Nick Mathewson
svn:r14949
2008-05-29New code to implement proposal for local geoip stats. Only enabled with ↵Nick Mathewson
--enable-geoip-stats passed to configure. svn:r14802
2008-05-16 r19795@catbus: nickm | 2008-05-16 14:54:24 -0400Nick Mathewson
Rename tor_addr_t manipulation functions for a consistent style. svn:r14639
2008-05-12 r19694@catbus: nickm | 2008-05-12 00:21:37 -0400Nick Mathewson
Add unit tests for last patch; make it more testable; fix a bug or two. svn:r14586
2008-04-23 r15304@tombo: nickm | 2008-04-23 16:31:40 -0400Nick Mathewson
Forward-port: I had apparently broken OSX and Freebsd by not initializing threading before we initialize the logging system. This patch should do so, and fix bug 671. svn:r14430
2008-04-08 r19233@catbus: nickm | 2008-04-08 13:06:34 -0400Nick Mathewson
When we remove old routers, use Bloom filters rather than a digestmap-based set in order to tell which ones we absolutely need to keep. This will save us roughly a kazillion little short-lived allocations for hash table entries. svn:r14318
2008-04-07 r19229@catbus: nickm | 2008-04-07 12:28:22 -0400Nick Mathewson
Add a new SMARTLIST_FOREACH_JOIN macro to iterate through two sorted lists in lockstep. This happens at least 3 times in the code so far, and is likely to happen more in the future. Previous attempts to do so proved touchy, tricky, and error-prone: now, we only need to get it right in one place. svn:r14309
2008-03-31 r19152@catbus: nickm | 2008-03-30 23:20:11 -0400Nick Mathewson
Make unit tests pass again after Link protocol list change. svn:r14254
2008-03-26 r19062@catbus: nickm | 2008-03-26 12:56:25 -0400Nick Mathewson
Fix whitespace svn:r14197
2008-03-26 r19049@catbus: nickm | 2008-03-26 12:33:25 -0400Nick Mathewson
Add new stacklike, free-all-at-once memory allocation strategy. Use it when parsing directory information. This helps parsing speed, and may well help fragmentation some too. hidden-service-related stuff still uses the old tokenizing strategies. svn:r14194
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-03-21make it build, tooRoger Dingledine
svn:r14151
2008-03-17 r18900@catbus: nickm | 2008-03-17 18:32:25 -0400Nick Mathewson
Fix tests and routerdesc behavior on trunk. svn:r14084
2008-03-17 r18880@catbus: nickm | 2008-03-17 12:51:24 -0400Nick Mathewson
Fix policy-related crash bug found by lodger. svn:r14077
2008-03-13 r18804@catbus: nickm | 2008-03-13 18:18:31 -0400Nick Mathewson
Refactor log domain mask code so that nobody outside of log.c has to use SEVERITY_MASK_IDX. It is error-prone. svn:r14016
2008-03-13downgrade get_interface_address6 logging severity to LOG_DEBUG.Peter Palfrader
get_interface_address6() fails regardless of the allocator used, wever logging to the original severity of 0 causes an assert error only with the bsd allocator. weird. svn:r14005
2008-03-13Use proper log levels with get_interface_address6() calls so we do not die ↵Peter Palfrader
in an assert error because of invalid log levels. Should a failure here fail our test suite? svn:r14003
2008-03-05 r18630@catbus: nickm | 2008-03-05 17:31:33 -0500Nick Mathewson
Implement domain-selection for logging. Source is documented; needs documentation in manpage (maybe). For now, see doxygen comment on parse_log_severity_config in log.c svn:r13875
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-21 r14374@tombo: nickm | 2008-02-21 16:57:39 -0500Nick Mathewson
Fix all remaining shorten-64-to-32 errors in src/common. Some were genuine problems. Many were compatibility errors with libraries (openssl, zlib) that like predate size_t. Partial backport candidate. svn:r13665
2008-02-21 r18336@catbus: nickm | 2008-02-21 09:33:15 -0500Nick Mathewson
Patch from Sebastian Hahn: remove obsolete timeval manipulation functions. svn:r13653
2008-02-21 r18286@catbus: nickm | 2008-02-20 21:10:33 -0500Nick Mathewson
Fix a bug that kept buf_find_string_offset from finding a string at the very end of the buffer. Add a unit test for this. Also, do not save a pointer to a chunk that might get reallocated by buf_pullup(). svn:r13635