aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAge
* Standardize our printf code on %d, not %i.Nick Mathewson2011-04-19
|
* Use GetTempDir instead of hardcoded path to c:\windows\tmp for unittestsGisle Vanem2011-04-07
|
* Clean up whitespaceNick Mathewson2011-03-16
|
* Make the DH parameter we use for TLS match the one from Apache's mod_sslNick Mathewson2011-01-24
| | | | | | Our regular DH parameters that we use for circuit and rendezvous crypto are unchanged. This is yet another small step on the path of protocol fingerprinting resistance.
* Sanity-check consensus param valuesSebastian Hahn2011-01-15
| | | | | | | | | | | | | | | We need to make sure that the worst thing that a weird consensus param can do to us is to break our Tor (and only if the other Tors are reliably broken in the same way) so that the majority of directory authorities can't pull any attacks that are worse than the DoS that they can trigger by simply shutting down. One of these worse things was the cbtnummodes parameter, which could lead to heap corruption on some systems if the value was sufficiently large. This commit fixes this particular issue and also introduces sanity checking for all consensus parameters.
* Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson2011-01-15
| | | | | | Conflicts: src/or/routerparse.c src/or/test.c
* Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson2011-01-15
| | | | | | | | | Conflicts: src/or/config.c src/or/networkstatus.c src/or/rendcommon.c src/or/routerparse.c src/or/test.c
* Merge remote branch 'sebastian/bug2314' into maint-0.2.2Nick Mathewson2011-01-03
|\
| * Fix compile wanrings revealed by gcc 4.5 on mingwSebastian Hahn2010-12-27
| |
* | Bump copyright statements to 2011 (0.2.2)Nick Mathewson2011-01-03
| |
* | Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson2011-01-03
|/ | | | | | Conflicts: src/common/test.h src/or/test.c
* Report only the top 10 ports in exit-port stats.Karsten Loesing2010-11-24
|
* Fix a unit test broken by fix for 2195Nick Mathewson2010-11-19
|
* Merge branch 'bug1772' into maint-0.2.2Roger Dingledine2010-09-29
|\
| * Do away with the complexity of the network liveness detection.Mike Perry2010-09-29
| | | | | | | | | | | | We really should ignore any timeouts that have *no* network activity for their entire measured lifetime, now that we have the 95th percentile measurement changes. Usually this is up to a minute, even on fast connections.
* | Merge remote branch 'public/bug1954' into maint-0.2.2Nick Mathewson2010-09-27
|\ \
| * | New function to load windows system librariesNick Mathewson2010-09-21
| |/ | | | | | | | | | | This function uses GetSystemDirectory() to make sure we load the version of the library from c:\windows\system32 (or local equivalent) rather than whatever version lives in the cwd.
* | Merge remote branch 'sebastian/continuation'Nick Mathewson2010-09-24
|\ \ | |/ |/|
| * Add new torrc line continuation unit testsSebastian Hahn2010-09-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to make sure that we don't break old torrc files that might have used something like this made-up example: ContactInfo UberUser <uber@user.com> # /// Fake email! \\\ Log info file /home/nick.mathewson/projects/tor-info.log And we also want to support the following style of writing your torrc: ExcludeNodes \ # Node1337 is run by the Bavarian Illuminati Node1337, \ # The operator of Node99 looked at me funny Node99 The code already handles both cases, but the unit test should help prove it.
| * Allow comments for multi-line torrc optionsSebastian Hahn2010-09-11
| |
| * Support mutli-line torrc options via the usual backslash syntaxNick Mathewson2010-09-10
| |
* | Update to the latest tinytest versionNick Mathewson2010-09-09
|/ | | | | | This cleans up some whitespace consistency issues and, more importantly, gives you the ability to skip tests from the command line.
* Make the windows build succeed with or without -DUNICODE enabled.Nick Mathewson2010-08-20
| | | | | | | | | | | | | | This should keep WinCE working (unicode always-on) and get Win98 working again (unicode never-on). There are two places where we explicitly use ASCII-only APIs, still: in ntmain.c and in the unit tests. This patch also fixes a bug in windoes tor_listdir that would cause the first file to be listed an arbitrary number of times that was also introduced with WinCE support. Should fix bug 1797.
* Add unit test for tor_listdir.Nick Mathewson2010-08-20
|
* Remove unused function declarationsSebastian Hahn2010-08-17
| | | | | | Also remove some #if 0'd code from the unit tests for buffers. The code was killed in e6794e58081af773073c266e23fe3ab2ebecdb7e (5 years ago), and is now broken anyways.
* Fix compilation with --with-dmallocKarsten Loesing2010-08-16
| | | | Fixes 1832; bugfix on 0.2.2.6-alpha
* Merge commit 'sebastian/bug1831'Nick Mathewson2010-08-15
|\
| * Fix misplaced labelsSebastian Hahn2010-08-16
| |
| * Refactor circuit_build_times_parse_stateSebastian Hahn2010-08-16
| | | | | | | | | | Remove the msg parameter to pass an error message out. This wasn't needed and made it harder to detect a memory leak.
* | Make unit tests work when tests get run in subprocesses.Nick Mathewson2010-08-15
| | | | | | | | | | | | Apparently the way we handled cleaning up temporary directories with atexit() meant that when the child process exited, it would remove the temporary directory, thus making other tests in the main process fail.
* | Rename rep_hist_exit_stats_history in test.c tooNick Mathewson2010-08-15
| |
* | Run test_stats in a subprocess.Karsten Loesing2010-08-15
| |
* | Refactor exit port statistics code and add unit tests.Karsten Loesing2010-08-11
|/
* Fix a rare bug in rend_fn tests when the randomly generated port is 0Nick Mathewson2010-08-07
| | | | | | | | Since the rend code doesn't like the port to be 0, we shouldn't generate the port by declaring crypto_rand_int(65536); instead we should say crypto_rand_int(65535)+1. Diagnosed by Matt Edman; fixes bug 1808.
* Allow enabling or disabling *Statistics while Tor is running.Karsten Loesing2010-08-05
| | | | | | | | | | | | | | With this patch we stop scheduling when we should write statistics using a single timestamp in run_scheduled_events(). Instead, we remember when a statistics interval starts separately for each statistic type in geoip.c and rephist.c. Every time run_scheduled_events() tries to write stats to disk, it learns when it should schedule the next such attempt. This patch also enables all statistics to be stopped and restarted at a later time. This patch comes with a few refactorings, some of which were not easily doable without the patch.
* Fix up geoip unit tests to know about ??Nick Mathewson2010-07-31
|
* Create routerparse.hSebastian Hahn2010-07-27
|
* Create rephist.hSebastian Hahn2010-07-27
|
* Create policies.hSebastian Hahn2010-07-27
|
* Create onion.hSebastian Hahn2010-07-27
|
* Create networkstatus.hSebastian Hahn2010-07-27
|
* Create dirvote.hSebastian Hahn2010-07-27
|
* Create dirserv.hSebastian Hahn2010-07-27
|
* Create directory.hSebastian Hahn2010-07-27
|
* Create control.hSebastian Hahn2010-07-27
|
* Create connection_edge.hSebastian Hahn2010-07-27
|
* Create config.hSebastian Hahn2010-07-27
|
* Create circuitbuild.hSebastian Hahn2010-07-27
|
* Create buffers.hSebastian Hahn2010-07-27
|
* Create rendcommon.hSebastian Hahn2010-07-27
|