aboutsummaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2018-08-27When running make test-network-all, use the mixed+hs-v2 networkteor
No behaviour change. A previous fix to chutney removed v3 onion services from the mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is confusing. Fixes bug 27345; bugfix on 0.3.2.1-alpha.
2018-08-23Merge branch 'maint-0.2.9' into maint-0.3.2Nick Mathewson
2018-08-24Silence a compilation warning on MSVC 2017 and clang-clteor
test.c no longer uses lround(), so we don't need to declare it, and we can use math.h for fabs(). Fixes bug 27185; bugfix on 0.2.2.2-alpha.
2018-08-22Merge branch 'maint-0.2.9' into maint-0.3.2Nick Mathewson
2018-08-22Mark cert_matches_key as not-intrusive; fix stretch compilation.Nick Mathewson
2018-08-21Merge remote-tracking branch 'teor/travis-osx-032' into maint-0.3.2Nick Mathewson
2018-08-21Merge branch 'maint-0.2.9' into maint-0.3.2Nick Mathewson
2018-08-20Rewrite test_tortls_cert_matches_key()Nick Mathewson
Unlike the old test, this test no will no longer mess around with the forbidden internals of any openssl data structures. Additionally, it verifies several other behaviors of tor_tls_cert_matches_key() that we had wanted to verify, such as the possibility of the certificate's key not matching. Fixes bug 27226; bugfix on 0.2.5.1-alpha.
2018-08-10Fix $abs_top_srcdir in test_rust.shteor
Consistently use ../../.. as a fallback for $abs_top_srcdir in test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
2018-08-10Stop setting $CARGO_HOMEteor
cargo will use the user's $CARGO_HOME, or $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
2018-08-10Rust: backport src/test/test_rust.sh from masterteor
Preparation for 26497.
2018-07-19Merge remote-tracking branch 'teor/bug26853_032' into maint-0.3.2Nick 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-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-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-17Merge branch 'maint-0.2.9' into maint-0.3.2Nick 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-09Merge remote-tracking branch 'github/bug26269_031' into maint-0.3.2Nick Mathewson
2018-07-03Merge branch 'maint-0.2.9' into maint-0.3.2Nick Mathewson
2018-07-02hs_ntor_ref.py: pass only strings to subprocess.PopenNick Mathewson
Recent Python3 versions seem to require this on Windows. Fixes bug 26535; bug copied from ntor_ref.py on 0.3.1.1-alpha.
2018-07-02ntor_ref.py: pass only strings to subprocess.PopenNick Mathewson
Recent Python3 versions seem to require this on Windows. Fixes bug 26535; bug introduced in f4be34f70d6f277a0f3f73e, which was apparently intended itself as a Python3 workaround.
2018-06-29Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-06-29Merge branch 'maint-0.2.9' into maint-0.3.1Nick Mathewson
2018-06-29Fix a memory error in test_shared_randomNick Mathewson
Bug not in any released Tor.
2018-06-29Fix some memory errors in the recent coverity fixes.Nick Mathewson
Found by asan on travis :/
2018-06-29Merge remote-tracking branch 'ahf-github/maint-0.3.2' into maint-0.3.2Nick Mathewson
2018-06-29Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-06-29Merge remote-tracking branch 'ahf-github/maint-0.3.0' into maint-0.3.1Nick Mathewson
2018-06-29Merge remote-tracking branch 'ahf-github/maint-0.3.1' into maint-0.3.1Nick Mathewson
2018-06-29Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-06-29Merge branch 'maint-0.2.9' into maint-0.3.1Nick Mathewson
2018-06-23Fix memory leak in test_sr_setup_commits().Alexander Færøy
This patch fixes a memory leak in test_sr_setup_commits() where the place_holder is allocated, but never freed again. See: Coverity CID 1437440.
2018-06-23Fix memory leak in helper_add_hsdir_to_networkstatus().Alexander Færøy
This patch fixes a memory leak in helper_add_hsdir_to_networkstatus() where the rs object might not get properly freed. See: Coverity CID 1437427.
2018-06-23Fix memory leak in new_establish_intro_cell().Alexander Færøy
This patch fixes a memory leak in new_establish_intro_cell() that could happen if a test assertion fails and the *cell_out value isn't properly free'd. See: Coverity CID 1437445
2018-06-23Fix memory leak in test_channelpadding_consensus().Alexander Færøy
The relay variable is always allocated, but might not be freed before we return from this function. See: Coverity CID 1437431
2018-06-23Fix memory link in test_link_specifier().Alexander Færøy
This patch fixes a memory leak in test_link_specifier() where ls might not get freed in case one of the test macros fails. See: Coverity CID 1437434.
2018-06-23Fix potential memory leak in hs_helper_build_hs_desc_impl().Alexander Færøy
This patch fixes a memory leak in hs_helper_build_hs_desc_impl() where if a test assertion would fail we would leak the storage that `desc` points to. See: Coverity CID 1437448
2018-06-23Fix potential memory leak in test_hs_auth_cookies().Alexander Færøy
This patch fixes a potential memory leak in test_hs_auth_cookies() if a test-case fails and we goto the done label where no memory clean up is done. See: Coverity CID 1437453
2018-06-23Fix potential memory leak in hs_helper_build_intro_point().Alexander Færøy
This patch fixes a potential memory leak in hs_helper_build_intro_point() where a `goto done` is called before the `intro_point` variable have been assigned to the value of the `ip` variable. See: Coverity CID 1437460 See: Coverity CID 1437456
2018-06-13test_entrynodes: fix a GCC warningNick Mathewson
Some versions of GCC complain that the bfn_mock_node_get_by_id function might return NULL, but we're assuming that it won't. (We're assuming it won't return NULL because we know in the tests that we're passing it valid IDs.) To make GCC happy, tt_assert() that each node_t is set before using it. Fixes a second case of bug26269; bugfix on 0.3.0.1-alpha.
2018-05-24Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-05-24Merge branch 'maint-0.2.9' into maint-0.3.1Nick Mathewson
2018-05-24Add a unit test for PEM-encrypted documents.Nick Mathewson
2018-05-10Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-05-10Merge branch 'maint-0.2.9' into maint-0.3.1Nick Mathewson
2018-05-09Test read bandwidth measurements with empty filejuga0
2018-03-19tests: Fix HS test against max IP lifetime.Isis Lovecruft
* FIXES part of #25450: https://bugs.torproject.org/25450