summaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2010-09-27Merge remote branch 'public/bug1954' into maint-0.2.2Nick Mathewson
2010-09-24Merge remote branch 'sebastian/continuation'Nick Mathewson
2010-09-23Add new torrc line continuation unit testsSebastian Hahn
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.
2010-09-21New function to load windows system librariesNick Mathewson
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.
2010-09-11Allow comments for multi-line torrc optionsSebastian Hahn
2010-09-10Support mutli-line torrc options via the usual backslash syntaxNick Mathewson
2010-09-09Update to the latest tinytest versionNick Mathewson
This cleans up some whitespace consistency issues and, more importantly, gives you the ability to skip tests from the command line.
2010-08-20Make the windows build succeed with or without -DUNICODE enabled.Nick Mathewson
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.
2010-08-20Add unit test for tor_listdir.Nick Mathewson
2010-08-17Remove unused function declarationsSebastian Hahn
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.
2010-08-16Fix compilation with --with-dmallocKarsten Loesing
Fixes 1832; bugfix on 0.2.2.6-alpha
2010-08-15Merge commit 'sebastian/bug1831'Nick Mathewson
2010-08-15Make unit tests work when tests get run in subprocesses.Nick Mathewson
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.
2010-08-15Rename rep_hist_exit_stats_history in test.c tooNick Mathewson
2010-08-16Fix misplaced labelsSebastian Hahn
2010-08-16Refactor circuit_build_times_parse_stateSebastian Hahn
Remove the msg parameter to pass an error message out. This wasn't needed and made it harder to detect a memory leak.
2010-08-15Run test_stats in a subprocess.Karsten Loesing
2010-08-11Refactor exit port statistics code and add unit tests.Karsten Loesing
2010-08-07Fix a rare bug in rend_fn tests when the randomly generated port is 0Nick Mathewson
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.
2010-08-05Allow enabling or disabling *Statistics while Tor is running.Karsten Loesing
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.
2010-07-31Fix up geoip unit tests to know about ??Nick Mathewson
2010-07-27Create routerparse.hSebastian Hahn
2010-07-27Create rephist.hSebastian Hahn
2010-07-27Create policies.hSebastian Hahn
2010-07-27Create onion.hSebastian Hahn
2010-07-27Create networkstatus.hSebastian Hahn
2010-07-27Create dirvote.hSebastian Hahn
2010-07-27Create dirserv.hSebastian Hahn
2010-07-27Create directory.hSebastian Hahn
2010-07-27Create control.hSebastian Hahn
2010-07-27Create connection_edge.hSebastian Hahn
2010-07-27Create config.hSebastian Hahn
2010-07-27Create circuitbuild.hSebastian Hahn
2010-07-27Create buffers.hSebastian Hahn
2010-07-27Create rendcommon.hSebastian Hahn
2010-07-27Create routerlist.hSebastian Hahn
2010-07-27Create router.hSebastian Hahn
2010-07-27Create geoip.hSebastian Hahn
2010-07-06Fix unittest failure in bug 1660.Mike Perry
We now record large times as abandoned, to prevent a filter step from happening and skewing our results. Also, issue a warn for a rare case that can happen for funky values of Xm or too many abandoned circuits. Can happen (very rarely) during unit tests, but should not be possble during live operation, due to network liveness filters and discard logic.
2010-06-29Merge remote branch 'public/rand_double2'Nick Mathewson
2010-06-29Merge remote branch 'mikeperry/cbt-bugfixes3'Nick Mathewson
2010-06-25Fix typo in tinytest_demoSteven Murdoch
2010-06-22Add a function to return a double in range [0,1).Nick Mathewson
2010-06-15Split the circuit timeout and close codepaths.Mike Perry
We need to record different statistics at point of timeout, vs the point of forcible closing. Also, give some better names to constants and state file variables to indicate they are not dealing with timeouts, but abandoned circuits.
2010-06-09Address some issues with unit tests.Mike Perry
Histogram conversion causes accuracy loss, and there are some boundary conditions when we hit 1000 circuits that cause false negative test results.
2010-05-12Fix CBT unit tests.Mike Perry
2010-04-14Add --enable-static-zlib optionSebastian Hahn
Works like the --enable-static-openssl/libevent options. Requires --with-zlib-dir to be set. Note that other dependencies might still pull in a dynamicly linked zlib, if you don't link them in statically too.
2010-04-12Merge commit 'origin/maint-0.2.1'Nick Mathewson
Conflicts: src/or/test.c
2010-04-02Merge branch 'asprintf'Nick Mathewson
2010-02-27Update copyright dates for files not in maint-0.2.1Nick Mathewson