Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-04-15 | Fix compiler warning on test_status.c | Nick Mathewson | |
2014-04-15 | Uplift status.c unit test coverage with new test cases and macros. | dana koch | |
A new set of unit test cases are provided, as well as introducing an alternative paradigm and macros to support it. Primarily, each test case is given its own namespace, in order to isolate tests from each other. We do this by in the usual fashion, by appending module and submodule names to our symbols. New macros assist by reducing friction for this and other tasks, like overriding a function in the global namespace with one in the current namespace, or declaring integer variables to assist tracking how many times a mock has been called. A set of tests for a small-scale module has been included in this commit, in order to highlight how the paradigm can be used. This suite gives 100% coverage to status.c in test execution. | |||
2014-04-12 | Merge remote-tracking branch 'asn/bug11486' | Nick Mathewson | |
2014-04-11 | Add another unit test for parse_bridge_line(). | George Kadianakis | |
2014-04-09 | Fix a dumb C bug in the unit tests for 9841 | Nick Mathewson | |
Fixes bug 11460; bug only affects unit tests and is not in any released version of Tor. | |||
2014-04-09 | Merge remote-tracking branch 'public/bug10431' | Nick Mathewson | |
2014-04-08 | Move existing policy tests from test.c to new test_policy.c | Nick Mathewson | |
2014-04-08 | Remove unused extern decl for a nonexistent test suite | Nick Mathewson | |
2014-04-08 | Merge branch 'bug7952_final' | Nick Mathewson | |
Conflicts: src/test/include.am src/test/test.c | |||
2014-04-08 | Making entire exit policy available to Tor controller. | rl1987 | |
2014-04-08 | Merge remote-tracking branch 'public/bug9841_025' | Nick Mathewson | |
2014-04-07 | Fix some harmless/untriggerable memory leaks found by coverity | Nick Mathewson | |
2014-04-07 | Merge remote-tracking branch 'public/bug10363_024_squashed' | Nick Mathewson | |
2014-04-07 | Another 10363 instance: this one in tor_memmem fallback code | Nick Mathewson | |
2014-04-05 | Merge remote-tracking branch 'public/bug10801_024' | Nick Mathewson | |
Conflicts: src/common/address.c src/or/config.c | |||
2014-04-05 | Make tor_addr_port_parse handle portless IPv6 addresses correctly. | Nick Mathewson | |
(Not a bugfix on any Tor release; before 10801_024, it didn't handle portless addresses at all.) | |||
2014-04-05 | Add a test for default/port conflicts in tor_addr_port_parse | Nick Mathewson | |
2014-04-04 | Test for circuit_set_rend_token(.,.,NULL) | Nick Mathewson | |
2014-04-02 | Unit tests for connection_edge_process_resolved_cell | Nick Mathewson | |
Also rename a function to be more accurate (resolve->resolved) | |||
2014-04-02 | Tests for resolved_cell_parse | Nick Mathewson | |
2014-04-01 | Merge remote-tracking branch 'public/bug4645' | Nick Mathewson | |
Conflicts: src/or/dirserv.c | |||
2014-04-01 | Merge remote-tracking branch 'public/bug11232' | Nick Mathewson | |
2014-03-31 | Check return values for tor_munmap_file() in unit tests | Nick Mathewson | |
2014-03-27 | Report only the first bootstrap failure from an orconn | Nick Mathewson | |
Otherwise, when we report "identity mismatch", we then later report DONE when the connection gets closed. Fixes bug 10431; bugfix on 0.2.1.1-alpha. | |||
2014-03-27 | Don't do a DNS lookup on a bridge line address | Nick Mathewson | |
Fixes bug 10801; bugfix on 07bf274d in 0.2.0.1-alpha. | |||
2014-03-20 | Fix unittest compilation with --disable-curve25519 | Nick Mathewson | |
This is a fix for 9700, which we already fixed in 0.2.5.x, but which got left in 0.2.4.x. This is a partial backport of a0a855d586d99540277014ccd3 | |||
2014-03-18 | Fix a use-after-free in test_circuitlist.c | Nick Mathewson | |
Found by clang-3.4 analyzers. | |||
2014-03-13 | Fix some leaks/missed checks in the unit tests | Nick Mathewson | |
Coverity spotted these. | |||
2014-03-11 | Merge remote-tracking branch 'asn/bug11069_take2' | Nick Mathewson | |
2014-03-10 | Throw control port warning if we failed to connect to all our bridges. | George Kadianakis | |
2014-03-06 | Upgrade to the latest version of tinytest. | Nick Mathewson | |
This brings us to tinytest commit 709a36ba63ff16d8. The only big change tor-side is that we don't need our own test_mem_op operation any longer. | |||
2014-03-06 | tinytest tt_{mem,str}_op now handle NULLs better | Nick Mathewson | |
Now a NULL argument to either makes it fail, not crash. Fies bug 9004; bugfix on 0.2.2.4-alpha. | |||
2014-03-05 | Fix whitespace errors, all of them mine. | Nick Mathewson | |
2014-03-05 | Merge remote-tracking branch 'arma/ticket5528' | Nick Mathewson | |
Conflicts: src/or/router.c src/test/test_dir.c | |||
2014-03-04 | Merge branch 'bug10169_025_v2' | Nick Mathewson | |
Conflicts: src/test/test.c | |||
2014-03-03 | Fix compilation warnings in tor_addr_make_null patch | Nick Mathewson | |
There was one "missing prototype" warning because the test function wasn't static, and one "unused parameter" warning about the "data" parameter. Also, I added a couple of tests to make sure that the "make_null" addresses really were the addresses we expected, by formatting them as strings. | |||
2014-03-03 | add test for tor_addr_make_null | Kevin Murray | |
Signed-off-by: Kevin Murray <spam@kdmurray.id.au> | |||
2014-02-28 | Unit tests for test_routerkeys_write_fingerprint | Nick Mathewson | |
2014-02-28 | Unit tests for pk fingerprint functions | Nick Mathewson | |
2014-02-17 | Restitute a successful stat call to this test case. | dana koch | |
Since the first stat call is made for it to deliberately fail, and we reference st.st_mode without st having valid data, st.st_mode can contain garbage and cause chmod to fail with EINVAL. We rerun stat and ensure it succeeded. Also make use of tt_abort_perror, to properly convey failure reasons to the user. | |||
2014-02-16 | mingw fix: Rename a variable in the unit tests | Nick Mathewson | |
Apparently, MS C is #defining "IN" on us, so we can't name a variable IN. Delightful! | |||
2014-02-15 | Merge branch 'bug4900_siphash_v2' | Nick Mathewson | |
2014-02-14 | fix a whitespace snafu | Nick Mathewson | |
2014-02-13 | Tests for rend_token maps | Nick Mathewson | |
This gets coverage of everything except for the cases which should be impossible. | |||
2014-02-12 | More unit tests for OOM handling. | Nick Mathewson | |
This gets us up to no interesting untested new or changed lines for the 10169 code. | |||
2014-02-12 | Initial unit tests for OOM handling | Nick Mathewson | |
2014-02-12 | Add tests for buffer time tracking. | Nick Mathewson | |
2014-02-12 | Several tests for buffer allocation | Nick Mathewson | |
2014-02-12 | Start writing tests for 10169. | Nick Mathewson | |
Now we cover more chunk allocation functions. | |||
2014-02-12 | Randomize the global siphash key at startup | Nick Mathewson | |
This completes our conversion to using siphash for our hash functions. |