summaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2014-04-15Fix compiler warning on test_status.cNick Mathewson
2014-04-15Uplift 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-12Merge remote-tracking branch 'asn/bug11486'Nick Mathewson
2014-04-11Add another unit test for parse_bridge_line().George Kadianakis
2014-04-09Fix a dumb C bug in the unit tests for 9841Nick Mathewson
Fixes bug 11460; bug only affects unit tests and is not in any released version of Tor.
2014-04-09Merge remote-tracking branch 'public/bug10431'Nick Mathewson
2014-04-08Move existing policy tests from test.c to new test_policy.cNick Mathewson
2014-04-08Remove unused extern decl for a nonexistent test suiteNick Mathewson
2014-04-08Merge branch 'bug7952_final'Nick Mathewson
Conflicts: src/test/include.am src/test/test.c
2014-04-08Making entire exit policy available to Tor controller.rl1987
2014-04-08Merge remote-tracking branch 'public/bug9841_025'Nick Mathewson
2014-04-07Fix some harmless/untriggerable memory leaks found by coverityNick Mathewson
2014-04-07Merge remote-tracking branch 'public/bug10363_024_squashed'Nick Mathewson
2014-04-07Another 10363 instance: this one in tor_memmem fallback codeNick Mathewson
2014-04-05Merge remote-tracking branch 'public/bug10801_024'Nick Mathewson
Conflicts: src/common/address.c src/or/config.c
2014-04-05Make 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-05Add a test for default/port conflicts in tor_addr_port_parseNick Mathewson
2014-04-04Test for circuit_set_rend_token(.,.,NULL)Nick Mathewson
2014-04-02Unit tests for connection_edge_process_resolved_cellNick Mathewson
Also rename a function to be more accurate (resolve->resolved)
2014-04-02Tests for resolved_cell_parseNick Mathewson
2014-04-01Merge remote-tracking branch 'public/bug4645'Nick Mathewson
Conflicts: src/or/dirserv.c
2014-04-01Merge remote-tracking branch 'public/bug11232'Nick Mathewson
2014-03-31Check return values for tor_munmap_file() in unit testsNick Mathewson
2014-03-27Report only the first bootstrap failure from an orconnNick 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-27Don't do a DNS lookup on a bridge line addressNick Mathewson
Fixes bug 10801; bugfix on 07bf274d in 0.2.0.1-alpha.
2014-03-20Fix unittest compilation with --disable-curve25519Nick 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-18Fix a use-after-free in test_circuitlist.cNick Mathewson
Found by clang-3.4 analyzers.
2014-03-13Fix some leaks/missed checks in the unit testsNick Mathewson
Coverity spotted these.
2014-03-11Merge remote-tracking branch 'asn/bug11069_take2'Nick Mathewson
2014-03-10Throw control port warning if we failed to connect to all our bridges.George Kadianakis
2014-03-06Upgrade 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-06tinytest tt_{mem,str}_op now handle NULLs betterNick Mathewson
Now a NULL argument to either makes it fail, not crash. Fies bug 9004; bugfix on 0.2.2.4-alpha.
2014-03-05Fix whitespace errors, all of them mine.Nick Mathewson
2014-03-05Merge remote-tracking branch 'arma/ticket5528'Nick Mathewson
Conflicts: src/or/router.c src/test/test_dir.c
2014-03-04Merge branch 'bug10169_025_v2'Nick Mathewson
Conflicts: src/test/test.c
2014-03-03Fix compilation warnings in tor_addr_make_null patchNick 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-03add test for tor_addr_make_nullKevin Murray
Signed-off-by: Kevin Murray <spam@kdmurray.id.au>
2014-02-28Unit tests for test_routerkeys_write_fingerprintNick Mathewson
2014-02-28Unit tests for pk fingerprint functionsNick Mathewson
2014-02-17Restitute 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-16mingw fix: Rename a variable in the unit testsNick Mathewson
Apparently, MS C is #defining "IN" on us, so we can't name a variable IN. Delightful!
2014-02-15Merge branch 'bug4900_siphash_v2'Nick Mathewson
2014-02-14fix a whitespace snafuNick Mathewson
2014-02-13Tests for rend_token mapsNick Mathewson
This gets coverage of everything except for the cases which should be impossible.
2014-02-12More 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-12Initial unit tests for OOM handlingNick Mathewson
2014-02-12Add tests for buffer time tracking.Nick Mathewson
2014-02-12Several tests for buffer allocationNick Mathewson
2014-02-12Start writing tests for 10169.Nick Mathewson
Now we cover more chunk allocation functions.
2014-02-12Randomize the global siphash key at startupNick Mathewson
This completes our conversion to using siphash for our hash functions.