aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Expand)AuthorAge
...
* | Make check-spaces happySebastian Hahn2010-10-14
* | Merge branch 'nodes'Nick Mathewson2010-10-13
|\ \
| * | Implement policies for nodes (and for microdescriptors too)Nick Mathewson2010-10-01
| * | Rename routerstatus_t.is_running to is_flagged_running•••This was the only flag in routerstatus_t that we would previously change in a routerstatus_t in a consensus. We no longer have reason to do so -- and probably never did -- as you can now confirm more easily than you could have done by grepping for is_running before this patch. The name change is to emphasize that the routerstatus_t is_running flag is only there to tell you whether the consensus says it's running, not whether it *you* think it's running. Nick Mathewson2010-10-01
* | | Fix running unit tests from outside of the build directory (fixes bug #2051)•••Currently the unit tests test_util_spawn_background_* assume that they are run from the Tor build directory. This is not the case when running make distcheck, so the test will fail. This problem is fixed by autoconf setting BUILDDIR to be the root of the Tor build directory, and this preprocessor variable being used to specify the absolute path to test-child. Also, in test-child, do not print out argv[0] because this will no longer be predictable. Found by Sebastian Hahn. Steven Murdoch2010-10-11
* | | Merge remote branch 'sjmurdoch/bug1903'Nick Mathewson2010-10-11
|\ \ \
| * | | Skip running fgets_eagain test until we fix itSteven Murdoch2010-10-11
| * | | Add a unit test for tor_spawn_background•••- Test sucessfully starting a process - Test failing to find the executable Steven Murdoch2010-10-10
| * | | Add a unit test for fgets (currently fails)•••- For a non-blocking pipe, check that on EAGAIN fgets returns NULL rather than a partial line Steven Murdoch2010-10-10
| * | | Fix issues in nickm's review of format_helper_exit_status for bug #1903•••- Responsibility of clearing hex_errno is no longer with caller - More conservative bounds checking - Length requirement of hex_errno documented - Output format documented Steven Murdoch2010-10-04
| |/ /
* | | Make tor_sscanf handle %xNick Mathewson2010-10-11
* | | Actually add test_microdesc.c file.Nick Mathewson2010-10-07
* | | Unit tests for microdescriptor cache•••May help with tracking down bug #2022 Nick Mathewson2010-10-07
|/ /
* | Start tor-fw-helper in the background, and log whatever it outputsSteven Murdoch2010-09-30
* | Merge branch 'maint-0.2.2'Roger Dingledine2010-09-30
|\|
| * Merge branch 'bug1772' into maint-0.2.2Roger Dingledine2010-09-29
| |\
| | * Do away with the complexity of the network liveness detection.•••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. Mike Perry2010-09-29
* | | Merge branch 'bufferevent5'Nick Mathewson2010-09-27
|\ \ \ | |/ / |/| |
| * | Fix build with automake 1.6•••automake 1.6 doesn't like using a conditional += to add stuff to foo_LDADD. Instead you need to conditionally define a variable, then non-conditionally put that variable in foo_LDADD. Nick Mathewson2010-09-27
| * | Get SSL connections and linked connections working with bufferevents.•••Clients are now verified to work and build circuits correctly. There are still a few warnings given here and there that I need to look into. Nick Mathewson2010-09-27
* | | Merge remote branch 'public/bug1954' into maint-0.2.2Nick Mathewson2010-09-27
|\ \ \ | |/ / |/| |
| * | New function to load windows system libraries•••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. Nick Mathewson2010-09-21
| |/
* | Merge remote branch 'sebastian/continuation'Nick Mathewson2010-09-24
|\ \ | |/ |/|
| * Add new torrc line continuation unit tests•••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. Sebastian Hahn2010-09-23
| * 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 version•••This cleans up some whitespace consistency issues and, more importantly, gives you the ability to skip tests from the command line. Nick Mathewson2010-09-09
|/
* Make the windows build succeed with or without -DUNICODE enabled.•••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. Nick Mathewson2010-08-20
* Add unit test for tor_listdir.Nick Mathewson2010-08-20
* Remove unused function declarations•••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. Sebastian Hahn2010-08-17
* Fix compilation with --with-dmalloc•••Fixes 1832; bugfix on 0.2.2.6-alpha Karsten Loesing2010-08-16
* Merge commit 'sebastian/bug1831'Nick Mathewson2010-08-15
|\
| * Fix misplaced labelsSebastian Hahn2010-08-16
| * Refactor circuit_build_times_parse_state•••Remove the msg parameter to pass an error message out. This wasn't needed and made it harder to detect a memory leak. Sebastian Hahn2010-08-16
* | Make unit tests work when tests get run in subprocesses.•••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. Nick Mathewson2010-08-15
* | 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 0•••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. Nick Mathewson2010-08-07
* Allow enabling or disabling *Statistics while Tor is running.•••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. Karsten Loesing2010-08-05
* 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