aboutsummaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2020-03-17Conditionally disable part of hs_intropoint/introduce1_validationrl1987
This makes it not fail when ALL_BUGS_ARE_FATAL is enabled. Fixes bug 33546.
2020-03-17Conditionally disable part of dir/param_voting_lookup that expects soft ↵rl1987
asserts to happen
2020-03-06Disable parts of test_protover_all_supported() that cause fatal exceptions ↵rl1987
when ALL_BUGS_ARE_FATAL
2020-03-06Also skip dir/purpose_needs_anonymity_returns_true_by_default when ↵rl1987
ALL_BUGS_ARE_FATAL
2020-03-06Skip test_new_route_len_unhandled_exit() when ALL_BUGS_ARE_FATALrl1987
2020-03-05Merge branch 'maint-0.4.3'Nick Mathewson
2020-03-05Merge branch 'clang_format_prep_3'Nick Mathewson
2020-03-03Stop using all dirauth-only options in shared_random_client.cNick Mathewson
This is not as clean a patch as I would like: see the comment on ASSUME_AUTHORITY_SCHEDULING. This issue here is that the unit tests sometimes assume that we are going to be looking at the dirauth options and behaving like a dirauth, but without setting the options to turn is into one. This isn't an issue for actually running Tor, as far as I can tell with chutney.
2020-02-26In typed_var_kvassign, include config names in error messages.Nick Mathewson
This should improve the usability of our configuration error messages.
2020-02-26confmgt: when a units value is invalid, include a meaningful error.Nick Mathewson
Part of 33460.
2020-02-26confmgt: when an int/enum value is invalid, say which values are ok.Nick Mathewson
Part of 33460.
2020-02-24Rename voting_schedule_*() functions.Nick Mathewson
This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ voting_schedule_recalculate_timing dirauth_sched_recalculate_timing \ voting_schedule_get_start_of_next_interval voting_sched_get_start_of_interval_after \ voting_schedule_get_next_valid_after_time dirauth_sched_get_next_valid_after_time
2020-02-24Move one voting schedule fn into networkstatus.cNick Mathewson
The 'voting_schdule_get_start_of_next_interval' function isn't actually dirauth-specific.
2020-02-24Move voting_schedule.[ch] to src/feature/dirauth/Nick Mathewson
2020-02-24Merge branch 'ticket33316_squashed'Nick Mathewson
2020-02-24Initialize all subsystems during the unit testsNick Mathewson
Previously we had initialized only the library subsystems. This made it hard to write some tests, and encouraged people to put their subsystems at a level lower than they really belonged at. Instead, it probably just makes sense to initialize everything before we start the tests. Without this fix, 33316 breaks our tests because of raising the level of the ocirc/orconn events.
2020-02-24Merge remote-tracking branch 'tor-github/pr/1685/head'Nick Mathewson
2020-02-24Final touches to #32709 based on Nick's feedback.George Kadianakis
- Fix a bug and add unittest. - Add changes file. - Add man page entry.
2020-02-20Merge branch 'extract_routerkeys_squashed'Nick Mathewson
2020-02-20Move relay_handshake.[ch] into src/feature/relay, and make it optionalNick Mathewson
2020-02-20Merge branch 'maint-0.4.3'Nick Mathewson
2020-02-20Merge remote-tracking branch 'tor-github/pr/1719/head' into maint-0.4.3Nick Mathewson
2020-02-20Merge branch 'ticket4631_squashed'Nick Mathewson
2020-02-20dirvote: Improve the posted vote log messageteor
Cleanup after 4631.
2020-02-19Extract relay-only handshake code into its own file.Nick Mathewson
This is not the only relay-only handshake code, but it is most of such code that is in connection_or.c.
2020-02-19Merge branch 'extract_relay_dns'Nick Mathewson
2020-02-19Makefile: Tweak the test-network* chuttney networksteor
In "make test-network", add tests for single onion services v2 and v3. In "make test-network-all", test onion services v2 and v3 in the same network. Part of 33334.
2020-02-18Replace identifiers related to clipping DNS ttls.Nick Mathewson
This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ MIN_DNS_TTL_AT_EXIT MIN_DNS_TTL \ MAX_DNS_TTL_AT_EXIT MAX_DNS_TTL \ dns_clip_ttl clip_dns_ttl
2020-02-18test/dir: Add specific tests for late vote rejectionteor
Part of 4631.
2020-02-18test/dir: Update the tests for late vote rejectionteor
Part of 4631.
2020-02-17Makefile: Add an IPv6 mixed chutney networkteor
This network is used in make test-network-all and test-network-ipv6. Closes 33334.
2020-02-17Makefile: Add v3 onion services to the mixed networkteor
This network is used in make test-network-all and test-network-ipv4. Part of 33334.
2020-02-17Merge remote-tracking branch 'tor-github/pr/1731'teor
2020-02-17Merge branch 'bug33195_master' into ticket33280_masterteor
Conflicts: * Keep the changes from ticket33280_master
2020-02-14Merge remote-tracking branch 'tor-github/pr/1727/head'Nick Mathewson
2020-02-13Makefile: Use chutney's latest default networkteor
Use bridges+hs-v23 for "make test-network", rather than using chutney's old default. This change requires a recent version of chutney, because the old bridges+hs-v23 did not work. (See chutney's 33302 for details.) Closes 28208.
2020-02-13Makefike: Add an IPv6 test to test-networkteor
The IPv6 test only runs if IPv6 is available. Also, explicitly use the bridges+hs-v2 network for the IPv4-only test. This network was chutney's default as of January 2020. Closes 33300.
2020-02-12Merge branch 'maint-0.4.3'Nick Mathewson
2020-02-12Run "make autostyle".Nick Mathewson
2020-02-12test/protover: Test hard-coded protover sortingteor
Make sure that the following hard-coded protocol version lists are sorted: * supported protocols * recommended relay and client protocols * required relay and client protocols This test currently fails, because the supported protocols are not sorted. Tests for 33285.
2020-02-11Merge branch 'ticket33029_042_01' into ticket33029_043_03David Goulet
Conflicts: doc/tor.1.txt src/app/config/config.c src/app/config/or_options_st.h src/core/mainloop/connection.h Between 042 and 043, the dirauth options were modularized so this merge commit address this by moving the AuthDirRejectUncompressedRequests to the module along with a series of accessors. Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-02-11dirauth: Rename function for better clarityDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-02-11test: Add unit test for connection_dir_is_global_write_low()David Goulet
Part of #33029 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-02-11Merge branch 'ticket32362_squashed'Nick Mathewson
2020-02-11Check for leading zeros in tor_inet_aton()Neel Chauhan
2020-02-10Merge branch 'bug33104_041'Nick Mathewson
2020-02-10Add tests for control_event_signal.Nick Mathewson
2020-02-06Break CONNECTION_TESTCAE_ARG across multiple linesNick Mathewson
2020-02-06circuitbuild: expect bug message that clang-format will generate.Nick Mathewson
clang-format wants to put no space here, so we need to tell the test to expect a lack of a space.
2020-02-06Use parentheses to avoid mis-indentations of stringified macro argsNick Mathewson
clang-format sometimes thinks that "#name" should be written as "# name" if it appears at the start of a line. Using () appears to suppress this, while confusing Coccinelle.