aboutsummaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2019-10-14Merge remote-tracking branch 'tor-github/pr/1393' into maint-0.4.2Nick Mathewson
2019-10-09Merge remote-tracking branch 'tor-github/pr/1399'Nick Mathewson
2019-10-08test: New behavior on IP retry for HSv3Neel Chauhan
Unit test for #31652 where if we are over the retry limit for the IP but we have an established circuit, we don't remove the IP. Part of #31652
2019-10-08hs-v3: Do not remove intro point if circuit existsDavid Goulet
When considering introduction point of a service's descriptor, do not remove an intro point that has an established or pending circuit. Fixes #31652 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-08Fix flapping of test_service_intro_point() unittest.George Kadianakis
2019-10-07Merge remote-tracking branch 'tor-github/pr/1317'Nick Mathewson
2019-10-04Use {mock,unmock}_hostname_resolver() in relevant testsNick Mathewson
These tests all invoke the hostname resolver in one way or another, and therefore potentially block if our DNS server is missing, absent, or extremely slow. Closes ticket 31841.
2019-10-04Add a mock replacement for blocking hostname resolutionNick Mathewson
Based on examination of our tests, this mock function accepts "localhost" and "torproject.org", and rejects everything else.
2019-10-04Merge remote-tracking branch 'tor-github/pr/1392'teor
2019-10-03hs: ADD_ONION NEW:BEST now defaults to ED25519-V3David Goulet
From RSA1024 (v2) to v3 now. Closes #29669 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-03Merge branch 'tor-github/pr/1377'George Kadianakis
2019-10-03Merge branch 'tor-github/pr/1276'George Kadianakis
2019-10-03Unit tests for dirserv_reject_tor_version().Nick Mathewson
2019-10-03util/map_anon_nofork: Add a cast to avoid passing -48 to memsetNick Mathewson
This fixes coverity CID 1454593, and bug 31948. Bug not in any released version of Tor.
2019-10-02Merge remote-tracking branch 'tor-github/pr/1374'Nick Mathewson
2019-10-02Merge branch 'tor-github/pr/1385'David Goulet
2019-10-01Add a test for max_u16_in_sl().Nick Mathewson
This test does not currently pass, because of bug 31898.
2019-09-30Re-run "make autostyle" with improved annotate_ifdef_directivesNick Mathewson
2019-09-30log: When initialising log domain masks, only set known log domainsteor
And add a runtime test that checks for unknown domains and flags. Fixes bug 31854; bugfix on 0.2.1.1-alpha.
2019-09-30Merge branch 'tor-github/pr/1356'George Kadianakis
2019-09-30test: Avoid a map_anon_nofork test failure on SunOSteor
This test failure happened due to a signed/unsigned integer comparison. This bug occurred on SunOS, it may also occur on other systems that use signed char as the default. (And cast 1-byte integer constants to an unsigned integer.) Fixes bug 31897; bugfix on 0.4.1.1-alpha.
2019-09-26Merge remote-tracking branch 'tor-github/pr/1308'Nick Mathewson
2019-09-25Merge remote-tracking branch 'tor-github/pr/1349'Nick Mathewson
2019-09-25Merge branch 'tor-github/pr/1345'George Kadianakis
2019-09-25Merge branch 'tor-github/pr/1309'George Kadianakis
2019-09-25test: Use SEVERITY_MASK_IDX() to find the LOG_* mask indexesteor
In the unit tests and fuzzers. Fixes bug 31334; bugfix on 0.2.5.2-alpha.
2019-09-24test: a file with no config options, at the end of an %include directoryteor
(The file must contain whitespace or comments to trigger the bug.) Regression test for 31408.
2019-09-24Merge branch 'bug31408_035' into bug31408_masterteor
2019-09-23fix: Ticket #31589AmreshVenugopal
- The function `decrypt_desc_layer` has a cleaner interface. - `is_superencrypted_layer` changed from `int` -> `bool` [ticket details](https://trac.torproject.org/projects/tor/ticket/31589) add(changes/*): changes file fix(src/features/hs): is_superencrypted changed from `int` -> `bool` fix(changes/ticket31589): header add(changes/ticket31589): subsystem(onion services) to change
2019-09-23Fix bug when %including folder with comment only files. #31408Daniel Pinto
When processing a %included folder, a bug caused the pointer to the last element of the options list to be set to NULL when processing a file with only comments or whitepace. This could cause options from other files on the same folder to be discarded depending on the lines after the affected %include.
2019-09-19test: test dirserv_router_has_valid_address() with DirAllowPrivateAddressesteor
Part of 31793.
2019-09-19test: refactor dirserv_router_has_valid_address() teststeor
Cleanup after 31793.
2019-09-19test: dirserv_router_has_valid_address() with zero-family addressesteor
Sometimes tor doesn't initialise an address, so its family is zero. Failing test for 31793. Future commits will fix the code.
2019-09-17Merge branch 'maint-0.4.0' into maint-0.4.1Nick Mathewson
2019-09-17Merge branch 'maint-0.3.5' into maint-0.4.0Nick Mathewson
2019-09-16Run "make autostyle" and fix wide lines.Nick Mathewson
2019-09-16On windows, allow failures in test_parseconf.shNick Mathewson
There seems to be some unreliability issue with this test on appveyor. Addresses ticket 31757; This isn't a final fix for this issue, but it should make CI pass.
2019-09-16Fix a shellcheck warning in test_parseconf.sh.Nick Mathewson
I wonder why this didn't show up before.
2019-09-16Merge branch 'tor-github/pr/1316'George Kadianakis
2019-09-16Merge branch 'tor-github/pr/1324'George Kadianakis
2019-09-14test_parseconf.sh: On --dump-config failure, --verify-configNick Mathewson
2019-09-14Add a test with many non-default options.Nick Mathewson
2019-09-14Add a few error test casesNick Mathewson
2019-09-14Add an integration test for %include.Nick Mathewson
2019-09-14test_parseconf: run each test from inside its directory.Nick Mathewson
We need this to test includes and relative paths.
2019-09-14Add test for +Option, /Option, and OptionNick Mathewson
Here we use these directives to replace, extend, or clear values in torrc.defaults and in torrc.
2019-09-14Move our first 3 example conf_examples to named directoriesNick Mathewson
I'm not planning to use "example" as the name for all of them, but these first three _are_ simple examples.
2019-09-14Add a test script to try parsing and encoding Tor configurationsNick Mathewson
This script takes a set of example torrcs and command-lines from src/test/conf_examples. If a success is expected, it runs "tor --dump-config" and compares the result with the one we expect. If a failure is expected, it runs "tor --verify-config" and greps for the error we expect.
2019-09-13Detect overflow or underflow on double config values.Nick Mathewson
Any floating point value too positive or negative to distinguish from +/-Inf, or too small to distinguish from +/-0, is an over/underflow.
2019-09-12Merge branch 'tor-github/pr/1319'David Goulet