aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
Commit message (Collapse)AuthorAge
* Move testing code into new src/test directory.Nick Mathewson2009-09-23
|
* Refactor unit tests to use the tinytest framework.Nick Mathewson2009-09-23
| | | | | | | | | | | | | | | | | | | "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.
* Fix build warnings on OSX 10.5.8Nick Mathewson2009-09-20
|
* Change the condition on the nonlive timeout counting.Mike Perry2009-09-20
| | | | Try to clarify things in the comment too.
* Fix typos and comments, plus two bugsRoger Dingledine2009-09-20
| | | | | | | | A) We were considering a circuit had timed out in the special cases where we close rendezvous circuits because the final rendezvous circuit couldn't be built in time. B) We were looking at the wrong timestamp_created when considering a timeout.
* Implement and document new network liveness algorithm.Mike Perry2009-09-20
| | | | Based on irc discussion with arma.
* Fix some precision-related asserts in unit tests.Mike Perry2009-09-20
| | | | | Mostly by storing the timeout as milliseconds and not seconds internally.
* disable the end of circuitbuildtimeout units testsRoger Dingledine2009-09-18
| | | | until mike figures out some other way to make them pass reliably
* Clarify use of magic number 0.98 with #define.Mike Perry2009-09-16
|
* Fix unit tests and compile issues on Snow LeopardSebastian Hahn2009-09-16
|
* space/indent cleanups, plus point out three bugsRoger Dingledine2009-09-16
|
* Use our variable directly for timeout.Mike Perry2009-09-16
| | | | | | | Using CircuitBuildTimeout is prone to issues with SIGHUP, etc. Also, shuffle the circuit build times array after loading it in so that newer measurements don't replace chunks of similarly timed measurements.
* Fix a couple of assert bugs.Mike Perry2009-09-16
|
* Recover from changing network connections.Mike Perry2009-09-16
| | | | | Also add code to keep creating circuits every minute until we hit our minimum threshhold.
* Write unit tests and fix issues they uncovered.Mike Perry2009-09-16
|
* Parameter access function, with unit tests.Nick Mathewson2009-09-14
|
* Implement proposal 167: Authorities vote on network parameters.Nick Mathewson2009-09-14
| | | | | | | | This code adds a new field to vote on: "params". It consists of a list of sorted key=int pairs. The output is computed as the median of all the integers for any key on which anybody voted. Improved with input from Roger.
* i couldn't break nick's tor_parse_double()Roger Dingledine2009-09-02
| | | | i guess that means i should call them unit tests and check them in.
* Merge commit 'origin/maint-0.2.1'Nick Mathewson2009-09-01
|\
| * Fix compile warnings on Snow LeopardSebastian Hahn2009-09-01
| | | | | | | | Big thanks to nickm and arma for helping me with this!
* | Merge commit 'karsten/proposal-166-impl-master'Nick Mathewson2009-08-26
|\ \
| * | Remove ./configure option for entry and dir request statistics.Karsten Loesing2009-08-17
| | |
* | | Add the first 8 bytes of the git commit digest to our versions.Nick Mathewson2009-08-21
| | | | | | | | | | | | | | | | | | | | | Note that unlike subversion revision numbers, it isn't meaningful to compare these for anything but equality. We define a sort-order anyway, in case one of these accidentally slips into a recommended-versions list.
* | | Add basic support for SHA256.Nick Mathewson2009-08-19
| | | | | | | | | | | | This adds an openssl 0.9.8 dependency. Let's see if anybody cares.
* | | Merge commit 'mikeperry/bandwidth-voting-final'Nick Mathewson2009-08-14
|\ \ \ | |/ / |/| |
| * | Merge commit 'nickm/strtok' into mp-voting-finalMike Perry2009-08-09
| |\ \
| | * | Add a new tor_strtok_r for platforms that don't have one, plus tests.Nick Mathewson2009-08-09
| | | | | | | | | | | | | | | | | | | | | | | | I don't think we actually use (or plan to use) strtok_r in a reentrant way anywhere in our code, but would be nice not to have to think about whether we're doing it.
| * | | Implement measured bw parsing + unit tests.Mike Perry2009-08-06
| |/ /
* / / Disable .exit notation unless AllowDotExit is 1.Roger Dingledine2009-08-07
|/ /
* | Fix unit tests.Karsten Loesing2009-07-24
| | | | | | | | | | | | | | Now that we require EntryStatistics to be 1 for counting connecting clients, unit tests need to set that config option, too. Reported by Sebastian Hahn.
* | Merge branch 'hardware_accel_improvements'Nick Mathewson2009-05-31
|\ \
| * | Add support for dynamic OpenSSL hardware crypto acceleration engines.Martin Peck2009-05-23
| | |
* | | Merge commit 'origin/maint-0.2.1'Nick Mathewson2009-05-27
|\ \ \ | |/ / |/| / | |/
| * Fix unit tests that were broken after last fix of #932.Karsten Loesing2009-05-27
| | | | | | | | | | | | | | | | With the last fix of task 932 (5f03d6c), client requests are only added to the history when they happen after the start of the current history. This conflicts with the unit tests that insert current requests first (defining the start of the client request history) followed by requests in the past. The fix is to insert requests in chronological order in the unit tests.
| * Spell-check Tor.Nick Mathewson2009-05-27
| |
| * Update copyright to 2009.Karsten Loesing2009-05-04
| |
* | Drop version 0 hidserv support on service side.Karsten Loesing2009-05-04
| |
* | Update copyright to 2009.Karsten Loesing2009-05-02
|/
* log more verbosely when we accept or decline a router descriptor,Roger Dingledine2009-04-01
| | | | | | | | to help track whether we received them when a relay operator claims they got sent. svn:r19213
* Actually use tor_sscanf() to parse untrusted input.Nick Mathewson2009-03-03
| | | | svn:r18761
* Add a simple locale-independent no-surprises sscanf replacement.Nick Mathewson2009-03-03
| | | | | | | | | | tor_sscanf() only handles %u and %s for now, which will make it adequate to replace sscanf() for date/time/IP parsing. We want this to prevent attackers from constructing weirdly formed descriptors, cells, addresses, HTTP responses, etc, that validate under some locales but not others. svn:r18760
* True, 17 is greater than 0. But this applies to 4111 as well.Karsten Loesing2009-01-13
| | | | svn:r18097
* Fix up (I hope) most ot the things that coverity suddenly claimed were ↵Nick Mathewson2009-01-13
| | | | | | REVERSE_INULL. This is what we get for bragging about being down to 0 issues. svn:r18096
* Do the tor_assert hack everywhere in test_crypto_aes_iv.Nick Mathewson2009-01-13
| | | | svn:r18095
* Another round of downgrading removing or postponing XXXX021 issues. Some ↵Nick Mathewson2009-01-04
| | | | | | remain, though. svn:r17888
* Fix the oldest bug in a while: stop accepting 1.2.3 as a valid IPv4 address ↵Nick Mathewson2009-01-04
| | | | | | on any platform. svn:r17887
* Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson2009-01-04
| | | | | | | | 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
* Refactor tor_addr_compare_masked() so that CMP_SEMANTIC makes more sense, ↵Nick Mathewson2008-12-26
| | | | | | and has decent semantics for maskbits; and so that CMP_EXACT works right for bits==0. svn:r17788
* some fixes i found in my sandboxRoger Dingledine2008-12-25
| | | | svn:r17771
* Remove bogus extern declaration for unused (and nonexistant) field from test.cNick Mathewson2008-12-23
| | | | svn:r17755