aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAge
* Merge branch 'feature3457-v4-nm-squashed'Nick Mathewson2012-01-11
|\ | | | | | | | | Conflicts: src/or/rendclient.c
| * Use spaceless ISO8601 time format, not sec,usec.Nick Mathewson2012-01-11
| |
* | Test for broken counter-mode at runtimeNick Mathewson2012-01-10
| | | | | | | | | | | | | | | | | | | | | | To solve bug 4779, we want to avoid OpenSSL 1.0.0's counter mode. But Fedora (and maybe others) lie about the actual OpenSSL version, so we can't trust the header to tell us if it's safe. Instead, let's do a run-time test to see whether it's safe, and if not, use our built-in version. fermenthor contributed a pretty essential fixup to this patch. Thanks!
* | Merge branch 'maint-0.2.2'Roger Dingledine2012-01-08
|\ \
| * | tell me who votes are actually for, not just where they're fromRoger Dingledine2012-01-08
| | |
* | | Use getifaddrs, not connect+getsockname, to find our addressNick Mathewson2011-12-28
| | | | | | | | | | | | | | | This resolves bug1827, and lets us avoid freaking people out. Later, we can use it to get a complete list of our interfaces.
* | | Tweak the haiku-support patchesNick Mathewson2011-12-19
| | |
* | | -lm should not be hardcoded.Martin Hebnes Pedersen2011-12-19
| | | | | | | | | | | | | | | | | | On some platforms (Haiku/BeOS) libm lives in libcore. Also added 'network' to the list of libraries to search for connect().
* | | test_util_spawn_background_ok: fix expectationPeter Palfrader2011-12-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test_util_spawn_background_ok() hardcoded the expected value for ENOENT to 2. This isn't portable as error numbers are platform specific, and particularly the hurd has ENOENT at 0x40000002. Construct expected string at runtime, using the correct value for ENOENT (closes: #4733).
* | | Appease check-spacesSebastian Hahn2011-12-02
| | |
* | | Add an initializer to appease older gccNick Mathewson2011-11-30
| | |
* | | Merge branch 'bug933_nm_rebased_v2'Nick Mathewson2011-11-30
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: src/test/test.c
| * | | No new "LEGACY" tests allowed.Nick Mathewson2011-11-30
| | | |
| * | | Fix compilation: get_options() now returns constNick Mathewson2011-11-30
| | | |
| * | | Address nickm's comments at ↵Robert Hogan2011-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://trac.torproject.org/projects/tor/ticket/933#comment:8 1. Only allow '*.' in MapAddress expressions. Ignore '*ample.com' and '.example.com'. This has resulted in a slight refactoring of config_register_addressmaps. 2. Add some more detail to the man page entry for AddressMap. 3. Fix initialization of a pointer to NULL rather than 0. 4. Update the unit tests to cater for the changes in 1 and test more explicitly for recursive mapping.
| * | | Address nickm's comments at ↵Robert Hogan2011-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://trac.torproject.org/projects/tor/ticket/933#comment:4 1. Implement the following mapping rules: MapAddress a.b.c d.e.f # This is what we have now MapAddress .a.b.c d.e.f # Replaces any address ending with .a.b.c with d.e.f MapAddress .a.b.c .d.e.f # Replaces the .a.b.c at the end of any addr with .d.e.f (Note that 'a.b.c .d.e.f' is invalid, and will be rejected.) 2. Add tests for the new rules. 3. Allow proper wildcard annotation, i.e. '*.d.e' '.d.e' will still work. 4. Update addressmap_entry_t with an is_wildcard member.
| * | | bug933 - Match against super-domains in MapAddressRobert Hogan2011-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow MapAddress to handle directives such as: MapAddress .torproject.org .torserver.exit MapAddress .org 1.1.1.1 Add tests for addressmap_rewrite.
* | | | Resolve a resource leak in test_util_split_linesNick Mathewson2011-11-30
| | | | | | | | | | | | | | | | Fixes coverity CID # 488
* | | | Initial support for simplest use of prop186 or-address linesNick Mathewson2011-11-30
| | | | | | | | | | | | | | | | | | | | This lets a routerinfo_t have a single IPv6 or-address, and adds support for formatting and parsing those lines.
* | | | Make unit tests run again. Fix bug 4606.Nick Mathewson2011-11-29
| | | |
* | | | Implement consensus method 12 (proposal 178)Sebastian Hahn2011-11-27
| | | |
* | | | Make the pt/transports test not crash.Nick Mathewson2011-11-25
| | | |
* | | | Make process_handle_t private and fix some unit testsNick Mathewson2011-11-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's *not* expose more cross-platform-compatibility structures, or expect code to use them right. Also, don't fclose() stdout_handle and stdin_handle until we do tor_process_handle_destroy, or we risk a double-fclose.
* | | | Make AES unit tests cover the AES and the EVP case.Nick Mathewson2011-11-25
| |_|/ |/| |
* | | Imporved unit test coverage for tor_inet_ptonAnders Sundman2011-11-19
| | |
* | | Merge remote-tracking branch 'public/benchmark'Nick Mathewson2011-11-18
|\ \ \
| * | | All-in-one benchmark test for cell cryptoNick Mathewson2011-11-11
| | | |
| * | | Convert bench_dmap to produce reasonable output.Nick Mathewson2011-11-11
| | | |
| * | | New src/test/bench.c to allow us to actually _run_ benchmark codeNick Mathewson2011-11-11
| | | | | | | | | | | | | | | | Yes, the timing functions are suboptimal. Please improve!
* | | | Merge remote-tracking branch '4ZM/topic/test/4433_address'Nick Mathewson2011-11-14
|\ \ \ \
| * | | | Unit tests for tor_addr_to_PTR_nameAnders Sundman2011-11-11
| | | | |
* | | | | Fix test_util.c compilation on MSVCGisle Vanem2011-11-11
| |/ / / |/| | | | | | | | | | | | | | | | | | | "Those '{}' constructs are not well liked by MSVC (cl v.16.xx)." Received on tor-dev; fixes bug on 0.2.3.3-alpha.
* | | | Fix the bench_{aes,dmap} test functions to work with TTSebastian Hahn2011-11-11
| | | | | | | | | | | | | | | | | | | | TT expects them to be named test_bench_{aes,dmap}. Also change the DISABLED macro to reflect that.
* | | | Merge remote-tracking branch '4ZM/topic/test/4434_address'Nick Mathewson2011-11-11
|\ \ \ \
| * | | | Unit tests for tor_addr_to_strAnders Sundman2011-11-11
| | | | |
| * | | | Unit tests for tor_inet_ntopAnders Sundman2011-11-11
| |/ / /
* | | | Unit tests for eat_whitespace functionsAnders Sundman2011-11-10
| | | |
* | | | Unit test for n_bits_set funcAnders Sundman2011-11-10
| | | |
* | | | Unit test for hex_str funcAnders Sundman2011-11-10
|/ / / | | | | | | | | | Note: Too long input is undefined by contract. That behaviour should not be asserted in test.
* | | Change "reverse_lookup_name" functions to refer to "PTR_name"sNick Mathewson2011-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under the new convention, having a tor_addr.*lookup function that doesn't do hostname resolution is too close for comfort. I used this script here, and have made no other changes. s/tor_addr_parse_reverse_lookup_name/tor_addr_parse_PTR_name/g; s/tor_addr_to_reverse_lookup_name/tor_addr_to_PTR_name/g;
* | | Fix names of functions that convert strings to addrsNick Mathewson2011-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now let's have "lookup" indicate that there can be a hostname resolution, and "parse" indicate that there wasn't. Previously, we had one "lookup" function that did resolution; four "parse" functions, half of which did resolution; and a "from_str()" function that didn't do resolution. That's confusing and error-prone! The code changes in this commit are exactly the result of this perl script, run under "perl -p -i.bak" : s/tor_addr_port_parse/tor_addr_port_lookup/g; s/parse_addr_port(?=[^_])/addr_port_lookup/g; s/tor_addr_from_str/tor_addr_parse/g; This patch leaves aton and pton alone: their naming convention and behavior is is determined by the sockets API. More renaming may be needed.
* | | Add a sha256 hmac function, with testsNick Mathewson2011-10-10
| | |
* | | Merge remote-tracking branch 'public/bug2003_nm'Nick Mathewson2011-10-07
|\ \ \
| * | | Make the unit tests pass again after the bug2003 fixNick Mathewson2011-09-07
| | | |
* | | | Merge remote-tracking branch 'asn2/bug3656'Nick Mathewson2011-10-07
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/common/util.c src/common/util.h src/or/config.h src/or/main.c src/test/test_util.c
| * | | | Revive our beautiful unit tests.George Kadianakis2011-10-07
| | | | | | | | | | | | | | | | | | | | They broke when the PT_PROTO_INFANT proxy state was added.
| * | | | Updated #includes etc. to use transports.[ch].George Kadianakis2011-07-18
| | | | |
| * | | | Add some unit tests.George Kadianakis2011-07-13
| | | | |
| * | | | Make some utility functions.George Kadianakis2011-07-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create a function that will get input from a stream, so that we can communicate with the managed proxy. * Hackish change to tor_spawn_background() so that we can specify an environ for our spawn.
* | | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-09-09
|\ \ \ \ \ | |_|_|/ / |/| | | / | | |_|/ | |/| | | | | | Conflicts: configure.in src/or/circuitbuild.c