aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAge
...
* | Merge branch 'bug11396_v2_squashed'Nick Mathewson2014-04-24
|\ \ | |/ |/| | | | | Conflicts: src/or/main.c
| * get_total_system_memory(): see how much RAM we haveNick Mathewson2014-04-24
| |
* | Fix uninitialized-ram free in unit testsNick Mathewson2014-04-17
| | | | | | | | | | Fix on fb595922; bug not in any released Tor. Found with --enable-expensive-hardening.
* | Fix compiler warning on test_status.cNick Mathewson2014-04-15
| |
* | Uplift status.c unit test coverage with new test cases and macros.dana koch2014-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge remote-tracking branch 'asn/bug11486'Nick Mathewson2014-04-12
|\ \
| * | Add another unit test for parse_bridge_line().George Kadianakis2014-04-11
| | |
* | | Fix a dumb C bug in the unit tests for 9841Nick Mathewson2014-04-09
| | | | | | | | | | | | | | | Fixes bug 11460; bug only affects unit tests and is not in any released version of Tor.
* | | Merge remote-tracking branch 'public/bug10431'Nick Mathewson2014-04-09
|\ \ \
| * | | Report only the first bootstrap failure from an orconnNick Mathewson2014-03-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Move existing policy tests from test.c to new test_policy.cNick Mathewson2014-04-08
| | | |
* | | | Remove unused extern decl for a nonexistent test suiteNick Mathewson2014-04-08
| | | |
* | | | Merge branch 'bug7952_final'Nick Mathewson2014-04-08
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | Conflicts: src/test/include.am src/test/test.c
| * | | Making entire exit policy available to Tor controller.rl19872014-04-08
| | | |
* | | | Merge remote-tracking branch 'public/bug9841_025'Nick Mathewson2014-04-08
|\ \ \ \
| * | | | Test for circuit_set_rend_token(.,.,NULL)Nick Mathewson2014-04-04
| | | | |
| * | | | Tests for rend_token mapsNick Mathewson2014-02-13
| | | | | | | | | | | | | | | | | | | | | | | | | This gets coverage of everything except for the cases which should be impossible.
* | | | | Fix some harmless/untriggerable memory leaks found by coverityNick Mathewson2014-04-07
| | | | |
* | | | | Merge remote-tracking branch 'public/bug10363_024_squashed'Nick Mathewson2014-04-07
|\ \ \ \ \
| * | | | | Another 10363 instance: this one in tor_memmem fallback codeNick Mathewson2014-04-07
| | | | | |
* | | | | | Merge remote-tracking branch 'public/bug10801_024'Nick Mathewson2014-04-05
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/common/address.c src/or/config.c
| * | | | | | Make tor_addr_port_parse handle portless IPv6 addresses correctly.Nick Mathewson2014-04-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Not a bugfix on any Tor release; before 10801_024, it didn't handle portless addresses at all.)
| * | | | | | Add a test for default/port conflicts in tor_addr_port_parseNick Mathewson2014-04-05
| | | | | | |
| * | | | | | Don't do a DNS lookup on a bridge line addressNick Mathewson2014-03-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 10801; bugfix on 07bf274d in 0.2.0.1-alpha.
| * | | | | | Fix unittest compilation with --disable-curve25519Nick Mathewson2014-03-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | Unit tests for connection_edge_process_resolved_cellNick Mathewson2014-04-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also rename a function to be more accurate (resolve->resolved)
* | | | | | | Tests for resolved_cell_parseNick Mathewson2014-04-02
| |_|_|_|_|/ |/| | | | |
* | | | | | Merge remote-tracking branch 'public/bug4645'Nick Mathewson2014-04-01
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/or/dirserv.c
| * | | | | | Removing is_internal_IP() function. Resolves ticket 4645.rl19872014-02-03
| | | | | | |
* | | | | | | Merge remote-tracking branch 'public/bug11232'Nick Mathewson2014-04-01
|\ \ \ \ \ \ \
| * | | | | | | Fix a use-after-free in test_circuitlist.cNick Mathewson2014-03-18
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | Found by clang-3.4 analyzers.
* / | | | | | Check return values for tor_munmap_file() in unit testsNick Mathewson2014-03-31
|/ / / / / /
* | | | | | Fix some leaks/missed checks in the unit testsNick Mathewson2014-03-13
| | | | | | | | | | | | | | | | | | | | | | | | Coverity spotted these.
* | | | | | Merge remote-tracking branch 'asn/bug11069_take2'Nick Mathewson2014-03-11
|\ \ \ \ \ \
| * | | | | | Throw control port warning if we failed to connect to all our bridges.George Kadianakis2014-03-10
| | | | | | |
* | | | | | | Upgrade to the latest version of tinytest.Nick Mathewson2014-03-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | tinytest tt_{mem,str}_op now handle NULLs betterNick Mathewson2014-03-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now a NULL argument to either makes it fail, not crash. Fies bug 9004; bugfix on 0.2.2.4-alpha.
* | | | | | | Fix whitespace errors, all of them mine.Nick Mathewson2014-03-05
| | | | | | |
* | | | | | | Merge remote-tracking branch 'arma/ticket5528'Nick Mathewson2014-03-05
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/or/router.c src/test/test_dir.c
| * | | | | | | stop setting, or using, router->addressRoger Dingledine2013-02-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resolves ticket 5528.
| * | | | | | | use me->addr when adding our address to our exit policyRoger Dingledine2013-02-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (rather than me->address)
* | | | | | | | Merge branch 'bug10169_025_v2'Nick Mathewson2014-03-04
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/test/test.c
| * | | | | | | | More unit tests for OOM handling.Nick Mathewson2014-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This gets us up to no interesting untested new or changed lines for the 10169 code.
| * | | | | | | | Initial unit tests for OOM handlingNick Mathewson2014-02-12
| | | | | | | | |
| * | | | | | | | Add tests for buffer time tracking.Nick Mathewson2014-02-12
| | | | | | | | |
| * | | | | | | | Several tests for buffer allocationNick Mathewson2014-02-12
| | | | | | | | |
| * | | | | | | | Start writing tests for 10169.Nick Mathewson2014-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we cover more chunk allocation functions.
* | | | | | | | | Fix compilation warnings in tor_addr_make_null patchNick Mathewson2014-03-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | | | add test for tor_addr_make_nullKevin Murray2014-03-03
| |_|/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Kevin Murray <spam@kdmurray.id.au>
* | | | | | | | Unit tests for test_routerkeys_write_fingerprintNick Mathewson2014-02-28
| | | | | | | |