aboutsummaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2018-08-08Consider all routerinfo errors other than "not a server" transientrl1987
2018-08-07Merge branch 'maint-0.3.4'Nick Mathewson
2018-08-07Merge branch 'bug27003_034_v2' into maint-0.3.4Nick Mathewson
2018-08-06Merge branch 'maint-0.3.4'Nick Mathewson
2018-08-06Rename SEC identifier to BW_SEC in test_bwmgt.hNick Mathewson
Apparently Solaris 10 defines SEC somewhere in its headers, causing a compilation problem. Fixes bug 26994; bugfix on 0.3.4.1-alpha.
2018-08-03Merge remote-tracking branch 'public/string_coverage'Nick Mathewson
2018-08-02When enabling periodic events, schedule but don't run them immediately.Nick Mathewson
When we fixed 25939 in f7633c1fcaefe72bf97c001bab9062132c919996, we introduced a call to rescan_periodic_events() from inside the onion service logic. But this meant that we could rescan the event list -- thereby running event callbacks! -- from inside the hidden service code. This could cause us to run some of our event callbacks from an inconsistent state, if we were in the middle of changing options. A related bug (#25761) prevented us from rescanning our periodic events as appropriate, but when we fixed THAT one, this bug reared its ugly head. The fix here is that "enabling" an event should cause us to run it from the event loop, but not immediately from the point where we enable it. Fixes bug 27003; bugfix on 0.3.4.1-alpha.
2018-08-01Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-08-01Merge branch 'maint-0.3.4'Nick Mathewson
2018-08-01Fix build on GNU/Hurd. Patch from paulusASol. Closes 26873.Nick Mathewson
2018-07-30Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-07-30Merge remote-tracking branch 'teor/bug26627_033_merged_master'Nick Mathewson
2018-07-30Merge remote-tracking branch 'juga/ticket3723_03_squashed_rebased'Nick Mathewson
2018-07-25Merge branch 'bug26627_033' into bug26627_033_merged_masterteor
2018-07-25Stop putting unsupported ed25519 link auth in v3 onion service descsteor
Stop putting ed25519 link specifiers in v3 onion service descriptors, when the intro point doesn't support ed25519 link authentication. Fixes bug 26627; bugfix on 0.3.2.4-alpha.
2018-07-19Merge branch 'maint-0.3.4'Nick Mathewson
2018-07-19Merge branch 'maint-0.3.2' into maint-0.3.3Nick Mathewson
2018-07-19Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-07-19Merge remote-tracking branch 'teor/bug26853_032' into maint-0.3.2Nick Mathewson
2018-07-18Merge branch 'maint-0.3.2' into maint-0.3.3Nick Mathewson
2018-07-18Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-07-18Merge branch 'maint-0.2.9' into maint-0.3.2Nick Mathewson
2018-07-18Try putting ulimit -c 0 in test_bt.sh to see if it fixes bug 26787Nick Mathewson
2018-07-18Add some missing includes and struct declarations.Nick Mathewson
2018-07-18Merge branch 'maint-0.3.4'Nick Mathewson
2018-07-18Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-07-18Merge branch 'maint-0.3.2' into maint-0.3.3Nick Mathewson
2018-07-18Merge branch 'maint-0.2.9' into maint-0.3.2Nick Mathewson
2018-07-18Merge branch 'bug26485_029_squashed' into maint-0.2.9Nick Mathewson
2018-07-18Add a test for format_recommended_version_list.Nick Mathewson
2018-07-18Merge branch 'ulimit_when_crashing'Nick Mathewson
2018-07-18SKIP test_key_expiration.sh on Windows until the underlying issue is resolvedteor
Skip an unreliable key expiration test on Windows, until the underlying issue in bug 26076 is resolved. Fixes bug 26853; bugfix on 0.3.2.1-alpha.
2018-07-17Increase line coverage in libtor-string to 100%Nick Mathewson
(On linux.)
2018-07-17Merge branch 'bug25552_ope_squashed'Nick Mathewson
2018-07-17Fix time source bug in sr_state_get_start_time_of_current_protocol_run().George Kadianakis
The following bug was causing many issues for this branch in chutney: In sr_state_get_start_time_of_current_protocol_run() we were using the consensus valid-after to calculate beginning_of_current_round, but we were using time(NULL) to calculate the current_round slot. This was causing time sync issues when the consensus valid-after and time(NULL) were disagreeing on what the current round is. Our fix is to use the consensus valid-after in both places. This also means that we are not using 'now' (aka time(NULL)) anymore in that function, and hence we can remove that argument from the function (and its callers). I'll do this in the next commit so that we keep things separated. Furthermore, we fix a unittest that broke.
2018-07-17Remove now useless rev counter state file code.George Kadianakis
We are not using the state file for rev counters anymore, we just generate them on the fly!
2018-07-17Fix up some unittests by being more careful with the local time.George Kadianakis
Now that the rev counter depends on the local time, we need to be more careful in the unittests. Some unittests were breaking because they were using consensus values from 1985, but they were not updating the local time appropriately. That was causing the OPE module to complain that it was trying to encrypt insanely large values.
2018-07-17Implementation for a simple order-preserving encryption scheme.Nick Mathewson
This is meant for use when encrypting the current time within the period in order to get a monotonically increasing revision counter without actually revealing our view of the time. This scheme is far from the most state-of-the-art: don't use it for anything else without careful analysis by somebody much smarter than I am. See ticket #25552 for some rationale for this logic.
2018-07-17Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-07-17Merge branch 'maint-0.3.2' into maint-0.3.3Nick Mathewson
2018-07-17Merge branch 'maint-0.2.9' into maint-0.3.2Nick Mathewson
2018-07-17Merge branch 'maint-0.3.4'Nick Mathewson
2018-07-17SKIP test_keygen.sh on Windows until the underlying issue is resolvedteor
Skip an unreliable key generation test on Windows, until the underlying issue in bug 26076 is resolved. Fixes bug 26830; bugfix on 0.2.7.3-rc.
2018-07-17Merge branch 'maint-0.3.4'Nick Mathewson
2018-07-17Fix build to work with --disable-unittests againrl1987
2018-07-16Add tests for max length bw file headersjuga0
2018-07-16Add test with NULL bw_file_headerjuga0
and complete v1.0.0 bandwidth file
2018-07-16Move bandwidth file tests to same functionjuga0
also add tests for bw_file_headers. Headers are all that is found before a correct relay line or the terminator. Tests include: * a empty bandwidth file * a bandwidth file with only timestamp * a bandwidth file with v1.0.0 headers * a bandwidth file with v1.0.0 headers and relay lines * a bandwidth file with v1.1.0 headers and v1.0.0 relay lines * a bandwidth file with v1.0.0 headers, malformed relay lines and relay lines * a bandwidth file with v1.0.0 headers, malformed relay lines, relay lines and malformed relay lines * a bandwidth file with v1.1.0 headers without terminator * a bandwidth file with v1.1.0 headers with terminator * a bandwidth file with v1.1.0 headers without terminator and relay lines * a bandwidth file with v1.1.0 headers with terminator and relay lines * a bandwidth file with v1.1.0 headers without terminator, bad relay lines and relay lines * a bandwidth file with v1.1.0 headers with terminator, bad relay lines and relay lines
2018-07-16Add the Bandwidth List file headers to votesjuga0
* add bwlist_headers argument to dirserv_read_measured_bandwidth in order to store all the headers found when parsing the file * add bwlist_headers to networkstatus_t in order to store the the headers found by the previous function * include the bandwidth headers as string in vote documents * add test to check that dirserv_read_measured_bandwidth generates the bwlist_headers
2018-07-16Try putting ulimit -c 0 in test_bt.sh to see if it fixes bug 26787Nick Mathewson