aboutsummaryrefslogtreecommitdiff
path: root/src/test/test.c
Commit message (Collapse)AuthorAge
...
| * | | bug1666 - Pass-through support for SOCKS5 authentication(4)Robert Hogan2010-12-14
| | | | | | | | | | | | | | | | | | | | | | | | Implement nickm's suggestion that we tolerate SOCKS5 clients that send authentication credentials and SOCKS commands all in one go.
| * | | bug1666 - Pass-through support for SOCKS5 authentication (2)Robert Hogan2010-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Address Nick's comments: - Refactor against changes in buffers.c - Ensure we have negotiated a method before accepting authentication credentials
| * | | bug1666 - Pass-through support for SOCKS5 authenticationRobert Hogan2010-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a SOCKS5 client insists on authentication, allow it to negotiate a connection with Tor's SOCKS server successfully. Any credentials the client provides are ignored. This allows Tor to work with SOCKS5 clients that can only support 'authenticated' connections. Also add a bunch of basic unit tests for SOCKS4/4a/5 support in buffers.c.
* | | | Check return value of crypto_global_init in test.cNick Mathewson2011-07-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This will let the unit tests fail in a less mystifying way if the crypto subsystem is b0rken, and will also make Coverity happier. CID # 429.
* | | | Make the get_options() return constNick Mathewson2011-06-14
| |_|/ |/| | | | | | | | | | | | | | | | | | | | This lets us make a lot of other stuff const, allows the compiler to generate (slightly) better code, and will make me get slightly fewer patches from folks who stick mutable stuff into or_options_t. const: because not every input is an output!
* | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-04-07
|\ \ \ | | |/ | |/|
| * | Use GetTempDir instead of hardcoded path to c:\windows\tmp for unittestsGisle Vanem2011-04-07
| | |
* | | Merge remote branch 'origin/maint-0.2.2'Nick Mathewson2011-01-03
|\| | | |/ |/|
| * Bump copyright statements to 2011 (0.2.2)Nick Mathewson2011-01-03
| |
* | Write bidirectional connection stats in single line.Karsten Loesing2010-12-03
| | | | | | | | | | There's no need to have a separate line conn-stats-end for the end date and interval length with only a single line conn-bi-direct following.
* | Refactor conn stats and add unit tests.Karsten Loesing2010-12-03
| |
* | Merge remote branch 'origin/maint-0.2.2'Nick Mathewson2010-11-29
|\|
| * Report only the top 10 ports in exit-port stats.Karsten Loesing2010-11-24
| |
* | Merge branch 'nodes'Nick Mathewson2010-10-13
|\ \
| * | Implement policies for nodes (and for microdescriptors too)Nick Mathewson2010-10-01
| |/
* / Unit tests for microdescriptor cacheNick Mathewson2010-10-07
|/ | | | May help with tracking down bug #2022
* 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.
* 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 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
|
* Create geoip.hSebastian Hahn2010-07-27
|
* Fix unittest failure in bug 1660.Mike Perry2010-07-06
| | | | | | | | | | 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.
* Split the circuit timeout and close codepaths.Mike Perry2010-06-15
| | | | | | | | 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.
* Address some issues with unit tests.Mike Perry2010-06-09
| | | | | | Histogram conversion causes accuracy loss, and there are some boundary conditions when we hit 1000 circuits that cause false negative test results.
* Fix CBT unit tests.Mike Perry2010-05-12
|
* Update copyright dates for files not in maint-0.2.1Nick Mathewson2010-02-27
|
* Remove misc unnecessary newlines found by new check.Mike Perry2010-02-22
|
* Move CBT params into consensus.Mike Perry2010-02-18
|
* Another unit test for exit_policy_is_general_exit()Sebastian Hahn2010-02-09
|
* Another unit test for exit_policy_is_general_exit()Sebastian Hahn2010-02-04
|
* New unit test, testing for b0red's exit policySebastian Hahn2010-02-04
|