aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Expand)AuthorAge
...
* | | | 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 tests•••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. Nick Mathewson2011-11-25
* | | | 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 code•••Yes, the timing functions are suboptimal. Please improve! Nick Mathewson2011-11-11
* | | | 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 MSVC•••"Those '{}' constructs are not well liked by MSVC (cl v.16.xx)." Received on tor-dev; fixes bug on 0.2.3.3-alpha. Gisle Vanem2011-11-11
| |/ / / |/| | |
* | | | Fix the bench_{aes,dmap} test functions to work with TT•••TT expects them to be named test_bench_{aes,dmap}. Also change the DISABLED macro to reflect that. Sebastian Hahn2011-11-11
* | | | 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 func•••Note: Too long input is undefined by contract. That behaviour should not be asserted in test. Anders Sundman2011-11-10
|/ / /
* | | Change "reverse_lookup_name" functions to refer to "PTR_name"s•••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; Nick Mathewson2011-10-11
* | | Fix names of functions that convert strings to addrs•••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. Nick Mathewson2011-10-11
* | | 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'•••Conflicts: src/common/util.c src/common/util.h src/or/config.h src/or/main.c src/test/test_util.c Nick Mathewson2011-10-07
|\ \ \ \
| * | | | Revive our beautiful unit tests.•••They broke when the PT_PROTO_INFANT proxy state was added. George Kadianakis2011-10-07
| * | | | Updated #includes etc. to use transports.[ch].George Kadianakis2011-07-18
| * | | | Add some unit tests.George Kadianakis2011-07-13
| * | | | Make some utility functions.•••* 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. George Kadianakis2011-07-13
* | | | | Merge remote-tracking branch 'origin/maint-0.2.2'•••Conflicts: configure.in src/or/circuitbuild.c Nick Mathewson2011-09-09
|\ \ \ \ \ | |_|_|/ / |/| | | / | | |_|/ | |/| |
| * | | Use %f with printf-style formatting, not %lf•••For printf, %f and %lf are synonymous, since floats are promoted to doubles when passed as varargs. It's only for scanf that we need to say "%lf" for doubles and "%f" for floats. Apparenly, some older compilers think it's naughty to say %lf and like to spew warnings about it. Found by grarpamp. Nick Mathewson2011-08-30
| | |/ | |/|
* | | Handle test case where fgets() sees EOF on the last read•••On some platforms, with non-blocking IO, on EOF you first get EAGAIN, and then on the second read you get zero bytes and EOF is set. However on others, the EOF flag is set as soon as the last byte is read. This patch fixes the test case in the latter scenario. Steven Murdoch2011-09-01
* | | Fix double-closing a stdio stream•••After a stream reached eof, we fclose it, but then test_util_spawn_background_partial_read() reads from it again, which causes an error and thus another fclose(). Some platforms are fine with this, others (e.g. debian-sid-i386) trigger a double-free() error. The actual code used by Tor (log_from_pipe() and tor_check_port_forwarding()) handle this case correctly. Steven Murdoch2011-09-01
* | | Tweaks on last process-launch patchesNick Mathewson2011-08-31
* | | Make a version of tor_read_all_handle() for non-Windows platforms•••Mainly used for testing reading from subprocesses. To be more generic we now pass in a pointer to a process_handle_t rather than a Windows- specific HANDLE. Steven Murdoch2011-09-01
* | | Fix off-by-one error when allocating memory in test_util_split_lines()•••Triggered "failed OVER picket-fence magic-number check (err 27)" when memory debugging using dmalloc is enabled (at 'low' or higher). Steven Murdoch2011-08-31
* | | Rename tor_join_cmdline to tor_join_win_cmdline; tweak doxygenNick Mathewson2011-08-30
* | | Factor out and re-write code for splitting lines from a handle•••Now handles non-printable characters and will not output a spurious new-line if given a partial line. Steven Murdoch2011-08-30
* | | Refactor out command line formatting•••Now correctly handles whitespace, quotes and backslashes. Passes all unit tests. Steven Murdoch2011-08-29
* | | Replace two magic tristates with #define'd names•••- process_handle_t.status - return value of tor_get_exit_code() Steven Murdoch2011-08-29
* | | Make signature of tor_spawn_background more conventional•••Conventionally in Tor, structs are returned as pointers, so change tor_spawn_background() to return the process handle in a pointer rather than as return value. Steven Murdoch2011-08-28
* | | Appease "make check-spaces"Steven Murdoch2011-08-24
* | | We don't need to find our own path, just tell Windows to searchSteven Murdoch2011-08-24
* | | Find test-child.exe by looking in same directory as test.exeSteven Murdoch2011-08-24
* | | Fix test cases to handle MSYS style paths (/c/foo rather than c:/foo)•••Also fix test case to expect 1 on successfully spawning a subprocess Steven Murdoch2011-08-22
* | | Tidy up subprocess code•••- Better error handling - Write description of functions - Don't assume non-negative process return values Steven Murdoch2011-08-22
* | | Fix some compiler warningsSteven Murdoch2011-08-22
* | | Merge remote branch 'origin/master' into bug2046Steven Murdoch2011-08-18
|\ \ \
| * | | Clean up bridge-stats code.•••Only write a bridge-stats string if bridge stats have been initialized. This behavior is similar to dirreq-stats, entry-stats, etc. Also add a few unit tests for the bridge-stats code. Karsten Loesing2011-08-04