summaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2018-10-31Add test for nodes_in_same_family()Neel Chauhan
2018-10-30Merge branch 'maint-0.3.5'David Goulet
2018-10-30Merge branch 'tor-github/pr/438' into maint-0.3.5David Goulet
2018-10-30Merge branch 'maint-0.3.5'David Goulet
2018-10-30Add test for HiddenServiceAuthorizeClient and v3 onion servicesNeel Chauhan
2018-10-30Merge remote-tracking branch 'tor-github/pr/425'Nick Mathewson
2018-10-30Merge branch 'ticket23082_squashed'Nick Mathewson
2018-10-30Move a check for trailing colon to tor_inet_pton()rl1987
That way, string_is_valid_ipv6_address() can benefit from it
2018-10-30Merge branch 'maint-0.3.5'Nick Mathewson
2018-10-30Merge remote-tracking branch 'tor-github/pr/381' into maint-0.3.5Nick Mathewson
2018-10-29Only pass `-C default-linker-libraries` with sanitizersAlex Crichton
This'll help retain test compatibility until 1.31.0 is released!
2018-10-25Add a couple more checks to test_parsecommon.cNick Mathewson
These checks should make coverity stop giving us a "dereference before null check" warning here.
2018-10-24Re-alphabetize the list of tests in tests.[ch]Nick Mathewson
2018-10-24Merge remote-tracking branch 'tor-github/pr/409'Nick Mathewson
2018-10-23Merge branch 'maint-0.3.5'Nick Mathewson
2018-10-23Merge branch 'maint-0.3.4' into maint-0.3.5Nick Mathewson
2018-10-23Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-10-23Merge remote-tracking branch 'onionk/rust-allsupportednull1' into maint-0.3.3Nick Mathewson
2018-10-23Func rename: Make it clear that update_all_descriptors() does intro points.George Kadianakis
With the new refresh_service_descriptor() function we had both refresh_service_descriptor() and update_service_descriptor() which is basically the same thing. This commit renames update_service_descriptor() to update_service_descriptor_intro_points() to make it clear it's not a generic refresh and it's only about intro points. Commit changes no code.
2018-10-20Exclude test and a supporting function when evdns_base_get_nameserver_addr() ↵rl1987
is not available
2018-10-20Unit test for DNS fallback in configure_nameserversrl1987
2018-10-18test: Add test for closing intro circuits when storing a new descriptorDavid Goulet
This is client side and related to 27471 for previous commit that fixes this issue. Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-10-18Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-10-17Merge branch 'bug27800-034' into bug27800-035Taylor Yu
2018-10-17Merge branch 'bug27800-033' into tor-034Taylor Yu
2018-10-17Log more info for duplicate ed25519 IDsTaylor Yu
Occasionally, key pinning doesn't catch a relay that shares an ed25519 ID with another relay. Log the identity fingerprints and the shared ed25519 ID when this happens, instead of making a BUG() warning. Fixes bug 27800; bugfix on 0.3.2.1-alpha.
2018-10-16One testcase for annotation handling in tokenize_string()rl1987
2018-10-16Test AT_END checking in tokenize_string()rl1987
2018-10-16Add testcase for too many elements in tokenize_string() inputrl1987
2018-10-16Add testcase for too few elements in tokenize_string() inputrl1987
2018-10-16Unit-test multiple line parsing with tokenize_string()rl1987
2018-10-16Unit-test some error conditions in get_next_token()rl1987
2018-10-16Test object parsing in get_next_token()rl1987
2018-10-16Fix memory management in test_parsecommon_get_next_token_parse_keysrl1987
2018-10-16Test RSA private key parsing with get_next_token()rl1987
2018-10-16Test-case for public key parsing using get_next_token()rl1987
2018-10-16Test argument concatenation in get_next_token()rl1987
2018-10-16First testcase for get_next_token()rl1987
2018-10-16Add new source file to test targetrl1987
2018-10-16Merge branch 'maint-0.3.4'Nick Mathewson
2018-10-16test: Update approx_time before the test startsDavid Goulet
This way we have the same time source when the IP is created and tested later. Fixes #27810 Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-10-14Merge branch 'bug27772_squashed'Nick Mathewson
2018-10-14Fix various GCC LTO warnings in the unit tests.Nick Mathewson
2018-10-14Use the correct function signatures in test_relaycell.cNick Mathewson
This is now officially an antipattern: please let's never copy a function declaration in two places again. That's what headers are for.
2018-10-12Merge remote-tracking branch 'tor-github/pr/380'Nick Mathewson
2018-10-01Fix segfaults related to sanitizers+jemallocAlex Crichton
It looks to be the case that Rust's standard allocator, jemalloc, is incompatible with sanitizers. The incompatibility, for whatever reason, seems to cause segfaults at runtime when jemalloc is linked with sanitizers. Without actually trying to figure out what's going on here this commit instead takes the hammer of "let's remove jemalloc when testing". The `tor_allocate` crate now by default switches to the system allocator (eventually this will want to be the tor allocator). Most crates then link to `tor_allocate` ot pick this up, but the `smartlist` crate had to manually switch to the system allocator in testing and the `external` crate had to be sure to link to `tor_allocate`. The final gotcha here is that this patch also switches to unconditionally passing `--target` to Cargo. For weird and arcane reasons passing `--target` with the host target of the compiler (which Cargo otherwise uses as the default) is different than not passing `--target` at all. This ensure that our custom `RUSTFLAGS` with sanitizer options doesn't make its way into build scripts, just the final testing artifacts.
2018-10-01Remove the `link_rust.sh.in` scriptAlex Crichton
This is no longer necessary with upstream rust-lang/rust changes as well as some local tweaks. Namely: * The `-fsanitize=address`-style options are now passed via `-C link-args` through `RUSTFLAGS`. This obviates the need for the shell script. * The `-C default-linker-libraries`, disabling `-nodefaultlibs`, is passed through `RUSTFLAGS`, which is necessary to ensure that `-fsanitize=address` links correctly. * The `-C linker` option is passed to ensure we're using the same C compiler as normal C code, although it has a bit of hackery to only get the `gcc` out of `gcc -std=c99`
2018-10-01Merge remote-tracking branch 'public/bug27728'Nick Mathewson
2018-10-01Remove routerparse include from files that dont use itNick Mathewson
2018-10-01Remove versions.h include from routerparse.hNick Mathewson