aboutsummaryrefslogtreecommitdiff
path: root/src/test/test.c
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'andrea/bug11476'Nick Mathewson2014-05-22
|\
| * Add --disable-mempools configure optionAndrea Shepard2014-05-12
| |
* | fix uninitialized memory reads from test_geoip_with_pt. Found with valgrindNick Mathewson2014-04-26
| |
* | Fix memory leak in test_geoipNick Mathewson2014-04-26
| |
* | Fix memory leak in test_onion_queuesNick Mathewson2014-04-26
| |
* | Fix memory leaks in test_circuit_timeoutNick Mathewson2014-04-26
|/ | | | Found with valgrind.
* 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.
* 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
| |
* | Unit tests for connection_edge_process_resolved_cellNick Mathewson2014-04-02
| | | | | | | | Also rename a function to be more accurate (resolve->resolved)
* | Fix some leaks/missed checks in the unit testsNick Mathewson2014-03-13
| | | | | | | | Coverity spotted these.
* | Merge remote-tracking branch 'arma/ticket5528'Nick Mathewson2014-03-05
|\ \ | | | | | | | | | | | | | | | Conflicts: src/or/router.c src/test/test_dir.c
| * | 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
| * | | Initial unit tests for OOM handlingNick Mathewson2014-02-12
| | | |
* | | | Unit tests for test_routerkeys_write_fingerprintNick Mathewson2014-02-28
| | | |
* | | | Free leakable values in the unit tests.Nick Mathewson2014-02-11
|/ / / | | | | | | | | | Thanks, Coverity! (CID 1171414, 1171415, 1171416)
* | | add test for node_get_verbose_nickname_by_idQingping Hou2014-02-06
| | |
* | | remove node_describe_by_id() functionQingping Hou2014-02-06
| | | | | | | | | | | | This function is not used anymore
* | | add test case for node_describe_by_idQingping Hou2014-01-29
| | |
* | | add test case for hidden service async eventsQingping Hou2014-01-29
| | |
* | | Add an --accel switch to run unit tests with crypto accelerationNick Mathewson2014-01-17
| | |
* | | Fix another unit test memory leak. CID1087949,CID1087950.Nick Mathewson2013-11-22
| | |
* | | Merge branch 'backtrace_squashed'Nick Mathewson2013-11-18
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/common/sandbox.c src/common/sandbox.h src/common/util.c src/or/main.c src/test/include.am src/test/test.c
| * | | Unit tests for new functions in log.cNick Mathewson2013-11-18
| | | |
* | | | Merge branch 'morestats4' into morestats5Karsten Loesing2013-10-28
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/tor.1.txt src/or/config.c src/or/connection.h src/or/control.c src/or/control.h src/or/or.h src/or/relay.c src/or/relay.h src/test/test.c
| * | | | Test functions used for TB_EMPTY and CELL_STATS events.Karsten Loesing2013-05-31
| | | | |
* | | | | Fix unit tests with --disable-curve25519Nick Mathewson2013-09-08
| | | | |
* | | | | Merge branch 'maint-0.2.4'Roger Dingledine2013-09-04
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | Conflicts: src/test/test.c
| * | | | refactor and give it unit testsRoger Dingledine2013-09-04
| | | | |
* | | | | Fix a wide line in test_geoip_with_ptNick Mathewson2013-08-15
| | | | |
* | | | | Merge branch 'bug5040_4773_rebase_3'Nick Mathewson2013-08-15
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Unit tests for ext_or_id_map.Nick Mathewson2013-08-15
| | | | |
| * | | | Split out buffers and socks tests into separate modules.Nick Mathewson2013-08-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No other changes were made here. Keeping everything in src/test/test.c was a legacy of back when we had all our unit tests in one big file. Doing this now because I'm adding an ext_or_command test.
| * | | | If a single client connects with multiple transports, note all transports.George Kadianakis2013-08-15
| | | | |
| * | | | Trivially change unittests to make them more readable.George Kadianakis2013-08-15
| | | | | | | | | | | | | | | | | | | | | | | | | Pluggable transport names are now in alphabetical order like they appear in the bridge-ip-transports string.
| * | | | Make check-spaces happy.George Kadianakis2013-08-15
| | | | |
| * | | | Fix some unittests that broke when we added bridge-ip-transports.George Kadianakis2013-08-15
| | | | |
| * | | | Add a unittest for the bridge-ip-transports extra-info line.George Kadianakis2013-08-15
| | | | |
| * | | | Add transport information to the GeoIP database.George Kadianakis2013-07-18
| | | | |
* | | | | Regression test for destroy cell queueNick Mathewson2013-07-19
|/ / / / | | | | | | | | | | | | This exercises the code that crashed and caused #9296.
* | | | Start of a unit test for options_validate.Nick Mathewson2013-07-18
| | | | | | | | | | | | | | | | | | | | | | | | I added this so I could write a unit test for ServerTransportOptions, but it incidentally exercises the succeed-on-defaults case of options_validate too.
* | | | Unit tests for cell queues.Nick Mathewson2013-07-18
| | | | | | | | | | | | | | | | | | | | This removes some INLINE markers from functions that probably didn't need them.
* | | | Add some basic unit tests for the circuit map data structure.Nick Mathewson2013-07-10
| | | | | | | | | | | | | | | | | | | | These show off the new mocking code by mocking the circuitmux code so that we can test the circuit map code in isolation.
* | | | Completely refactor how FILENAME_PRIVATE worksNick Mathewson2013-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We previously used FILENAME_PRIVATE identifiers mostly for identifiers exposed only to the unit tests... but also for identifiers exposed to the benchmarker, and sometimes for identifiers exposed to a similar module, and occasionally for no really good reason at all. Now, we use FILENAME_PRIVATE identifiers for identifiers shared by Tor and the unit tests. They should be defined static when we aren't building the unit test, and globally visible otherwise. (The STATIC macro will keep us honest here.) For identifiers used only by the unit tests and never by Tor at all, on the other hand, we wrap them in #ifdef TOR_UNIT_TESTS. This is not the motivating use case for the split test/non-test build system; it's just a test example to see how it works, and to take a chance to clean up the code a little.
* | | | Fix #9043 - simplyfy the code and use EVP_PKEY_cmp instead of pkey_eq / ↵Marek Majkowski2013-06-12
| | | | | | | | | | | | | | | | tor_tls_evp_pkey_eq
* | | | Bug #5170 - make pkey_eq testable, introduce test_tortls.cMarek Majkowski2013-06-10
| |/ / |/| |
* | | Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson2013-05-15
|\| |