Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-03-01 | First RelaxDirModeCheck implementation | Peter Palfrader | |
2016-02-27 | Update the copyright year. | Nick Mathewson | |
2016-02-24 | Fix a huge number of leaks in test_config.c | Nick Mathewson | |
I no longer see asan reporting memory leaks in the unit tests. | |||
2016-02-22 | Small fixup on last fix to test leaks | Nick Mathewson | |
2016-02-22 | Fix a bunch of memory leaks in the unit tests | Nick Mathewson | |
2016-02-01 | Redux: don't expect unix sockets to be accepted on windows | Nick Mathewson | |
2016-02-01 | Don't expect unix sockets to be accepted on Windows | Nick Mathewson | |
Fixes failures in test_config.c; bug not in any released tor. | |||
2016-01-21 | Merge remote-tracking branch 'twstrike/parse_port_config_tests' | Nick Mathewson | |
2016-01-06 | Add FallbackDir list to GETINFO config/defaults | George Tankersley | |
2015-12-18 | Fix config/directory_fetch after 12538 merge | Nick Mathewson | |
2015-12-17 | Prop210: Fix directory fetch tests | teor (Tim Wilson-Brown) | |
Check that directory fetches behave as expected under Prop 210. | |||
2015-12-15 | Merge remote-tracking branch 'teor/feature15775-fallback-v9-squashed' | Nick Mathewson | |
2015-12-16 | Add Fallback Directory Candidate Selection Script | teor | |
"Tor has included a feature to fetch the initial consensus from nodes other than the authorities for a while now. We just haven't shipped a list of alternate locations for clients to go to yet. Reasons why we might want to ship tor with a list of additional places where clients can find the consensus is that it makes authority reachability and BW less important. We want them to have been around and using their current key, address, and port for a while now (120 days), and have been running, a guard, and a v2 directory mirror for most of that time." Features: * whitelist and blacklist for an opt-in/opt-out trial. * excludes BadExits, tor versions that aren't recommended, and low consensus weight directory mirrors. * reduces the weighting of Exits to avoid overloading them. * places limits on the weight of any one fallback. * includes an IPv6 address and orport for each FallbackDir, as implemented in #17327. (Tor won't bootstrap using IPv6 fallbacks until #17840 is merged.) * generated output includes timestamps & Onionoo URL for traceability. * unit test ensures that we successfully load all included default fallback directories. Closes ticket #15775. Patch by "teor". OnionOO script by "weasel", "teor", "gsathya", and "karsten". | |||
2015-12-15 | Merge remote-tracking branch 'teor/feature17327-v4' | Nick Mathewson | |
2015-12-15 | Merge remote-tracking branch 'teor/feature4483-v10-squashed' | Nick Mathewson | |
2015-12-16 | Prop210: Close excess connections once a consensus is downloading | teor (Tim Wilson-Brown) | |
Once tor is downloading a usable consensus, any other connection attempts are not needed. Choose a connection to keep, favouring: * fallback directories over authorities, * connections initiated earlier over later connections Close all other connections downloading a consensus. | |||
2015-12-15 | Add UseDefaultFallbackDirs for hard-coded directory mirrors | teor (Tim Wilson-Brown) | |
UseDefaultFallbackDirs enables any hard-coded fallback directory mirrors. Default is 1, set it to 0 to disable fallbacks. Implements ticket 17576. Patch by "teor". | |||
2015-12-14 | Authorities on IPv6: minor fixes and unit tests | teor (Tim Wilson-Brown) | |
Update the code for IPv6 authorities and fallbacks for function argument changes. Update unit tests affected by the function argument changes in the patch. Add unit tests for authority and fallback: * adding via a function * line parsing * adding default authorities (Adding default fallbacks is unit tested in #15775.) | |||
2015-10-05 | Divide the different parse_port_config groups into separate tests | Ola Bini | |
2015-10-05 | Use tor_addr_eq instead of tt_mem_op | Ola Bini | |
2015-10-05 | Move CL_PORT definitions so they are accessible to the tests as well | Ola Bini | |
2015-10-05 | Fix all spaces | Ola Bini | |
2015-09-15 | Add tests for parse_port_config | Ola Bini | |
2015-04-23 | Unit tests for consider_adding_dir_servers() as modified in #15642 | teor | |
Unit tests for the 10 valid combinations of set/NULL config options DirAuthorities, AlternateBridgeAuthority, AlternateDirAuthority, and FallbackDir. Add assertion in consider_adding_dir_servers() for checks in validate_dir_servers(): "You cannot set both DirAuthority and Alternate*Authority." | |||
2015-02-23 | Fix endianness issues in test_config_resolve_my_address(). | rl1987 | |
Since resolve_my_address() yields IP address in host order there is no need to use byteorder functions for conversion. | |||
2015-01-23 | Try to fix some more memory leaks in the unit tests | Nick Mathewson | |
2015-01-13 | Allow MapAddress and Automap to work together | Nick Mathewson | |
The trick here is to apply mapaddress first, and only then apply automapping. Otherwise, the automap checks don't get done. Fix for bug 7555; bugfix on all versions of Tor supporting both MapAddress and AutoMap. | |||
2015-01-07 | appease "make check-spaces" | Nick Mathewson | |
2015-01-02 | Bump copyright dates to 2015, in case someday this matters. | Nick Mathewson | |
2014-12-29 | Merge branch 'resolvemyaddr_squashed' | Nick Mathewson | |
2014-12-29 | Make the resolvemyaddr unit tests pass when local dns is hijacked | Nick Mathewson | |
If you are in a coffee shop that returns a helpful redirect page for "onionrouter", or on an ISP that does the same, the test as written would fail. | |||
2014-12-29 | Fix memory leaks in resolvemyaddr tests | Nick Mathewson | |
2014-12-29 | Fix compilation errors in resolvemyaddr tests | Nick Mathewson | |
2014-12-29 | Adding comprehensive test cases for resolve_my_address. | rl1987 | |
Also, improve comments on resolve_my_address to explain what it actually does. | |||
2014-12-22 | Fix a bunch of memory leaks in the unit tests. Found with valgrind | Nick Mathewson | |
2014-11-12 | Fix wide lines (from 13172) | Nick Mathewson | |
2014-11-12 | Replace operators used as macro arguments with OP_XX macros | Nick Mathewson | |
Part of fix for 13172 | |||
2014-11-04 | Fix unused-argument warnings | Nick Mathewson | |
2014-11-04 | Merge remote-tracking branch 'andrea/ticket6456' | Nick Mathewson | |
Somewhat tricky conflicts: src/or/config.c Also, s/test_assert/tt_assert in test_config.c | |||
2014-10-28 | Add another year to our copyright dates. | Nick Mathewson | |
Because in 95 years, we or our successors will surely care about enforcing the BSD license terms on this code. Right? | |||
2014-09-15 | Use coccinelle scripts to clean up our unit tests | Nick Mathewson | |
This should get rid of most of the users of the old test_* functions. Some are in macros and will need manual cleanup, though. This patch is for 13119, and was automatically generated with these scripts. The perl scripts are there because coccinelle hates operators as macro arguments. ------------------------------ s/==,/_X_EQ_,/g; s/!=,/_X_NE_,/g; s/<,/_X_LT_,/g; s/>,/_X_GT_,/g; s/>=,/_X_GEQ_,/g; s/<=,/_X_LEQ_,/g; ------------------------------ @@ expression a; identifier func; @@ func (...) { <... -test_fail_msg +TT_DIE ( +( a +) ) ...> } @@ identifier func; @@ func (...) { <... -test_fail() +TT_DIE(("Assertion failed.")) ...> } @@ expression a; identifier func; @@ func (...) { <... -test_assert +tt_assert (a) ...> } @@ expression a, b; identifier func; @@ func (...) { <... -test_eq +tt_int_op (a, +_X_EQ_, b) ...> } @@ expression a, b; identifier func; @@ func (...) { <... -test_neq +tt_int_op (a, +_X_NEQ_, b) ...> } @@ expression a, b; identifier func; @@ func (...) { <... -test_streq +tt_str_op (a, +_X_EQ_, b) ...> } @@ expression a, b; identifier func; @@ func (...) { <... -test_strneq +tt_str_op (a, +_X_NEQ_, b) ...> } @@ expression a, b; identifier func; @@ func (...) { <... -test_eq_ptr +tt_ptr_op (a, +_X_EQ_, b) ...> } @@ expression a, b; identifier func; @@ func() { <... -test_neq_ptr +tt_ptr_op (a, +_X_NEQ_, b) ...> } @@ expression a, b, len; identifier func; @@ func (...) { <... -test_memeq +tt_mem_op (a, +_X_EQ_, b, len) ...> } @@ expression a, b, len; identifier func; @@ func (...) { <... -test_memneq +tt_mem_op (a, +_X_NEQ_, b, len) ...> } ------------------------------ @@ char a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a == b +a, _X_EQ_, b ) ...> } @@ int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a == b +a, _X_EQ_, b ) ...> } @@ long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a == b +a, _X_EQ_, b ) ...> } @@ unsigned int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a == b +a, _X_EQ_, b ) ...> } @@ unsigned long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a == b +a, _X_EQ_, b ) ...> } @@ char a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a != b +a, _X_NEQ_, b ) ...> } @@ int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a != b +a, _X_NEQ_, b ) ...> } @@ long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a != b +a, _X_NEQ_, b ) ...> } @@ unsigned int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a != b +a, _X_NEQ_, b ) ...> } @@ unsigned long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a != b +a, _X_NEQ_, b ) ...> } @@ char a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a >= b +a, _X_GEQ_, b ) ...> } @@ int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a >= b +a, _X_GEQ_, b ) ...> } @@ long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a >= b +a, _X_GEQ_, b ) ...> } @@ unsigned int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a >= b +a, _X_GEQ_, b ) ...> } @@ unsigned long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a >= b +a, _X_GEQ_, b ) ...> } @@ char a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a <= b +a, _X_LEQ_, b ) ...> } @@ int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a <= b +a, _X_LEQ_, b ) ...> } @@ long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a <= b +a, _X_LEQ_, b ) ...> } @@ unsigned int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a <= b +a, _X_LEQ_, b ) ...> } @@ unsigned long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a <= b +a, _X_LEQ_, b ) ...> } @@ char a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a > b +a, _X_GT_, b ) ...> } @@ int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a > b +a, _X_GT_, b ) ...> } @@ long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a > b +a, _X_GT_, b ) ...> } @@ unsigned int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a > b +a, _X_GT_, b ) ...> } @@ unsigned long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a > b +a, _X_GT_, b ) ...> } @@ char a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a < b +a, _X_LT_, b ) ...> } @@ int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a < b +a, _X_LT_, b ) ...> } @@ long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a < b +a, _X_LT_, b ) ...> } @@ unsigned int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a < b +a, _X_LT_, b ) ...> } @@ unsigned long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a < b +a, _X_LT_, b ) ...> } ------------------------------ s/_X_NEQ_/!=/g; s/_X_NE_/!=/g; s/_X_EQ_/==/g; s/_X_GT_/>/g; s/_X_LT_/</g; s/_X_GEQ_/>=/g; s/_X_LEQ_/<=/g; s/test_mem_op\(/tt_mem_op\(/g; | |||
2014-07-28 | Replace all calls to parse_client_transport_line() or ↵ | Andrea Shepard | |
parse_server_transport_line() with new parse_transport_line() stub | |||
2014-07-25 | Add unit test for ClientTransportPlugin/ServerTransportPlugin config line ↵ | Andrea Shepard | |
parsing | |||
2014-06-20 | Remove code for Windows CE support | Nick Mathewson | |
As far as I know, nobody has used this in ages. It would be a pretty big surprise if it had worked. Closes ticket 11446. | |||
2014-05-01 | Fix test_config_write_to_data_subdir | Nick Mathewson | |
Bugfix on aa0eb2022342798fc78b2bde89d393f37c59fe78; bugfix not on any released Tor. | |||
2014-04-29 | Fix leaks in tests related to setting options->DataDirectory | Nick Mathewson | |
We pre-populate that value in main(), and we weren't freeing it before overriding it. | |||
2014-04-26 | Memory leaks in test_config_addressmap | Nick Mathewson | |
2014-04-11 | Add another unit test for parse_bridge_line(). | George Kadianakis | |
2014-02-17 | Restitute a successful stat call to this test case. | dana koch | |
Since the first stat call is made for it to deliberately fail, and we reference st.st_mode without st having valid data, st.st_mode can contain garbage and cause chmod to fail with EINVAL. We rerun stat and ensure it succeeded. Also make use of tt_abort_perror, to properly convey failure reasons to the user. | |||
2014-02-14 | fix a whitespace snafu | Nick Mathewson | |