summaryrefslogtreecommitdiff
path: root/src/test/test.c
AgeCommit message (Collapse)Author
2014-05-22Merge remote-tracking branch 'andrea/bug11476'Nick Mathewson
2014-05-12Add --disable-mempools configure optionAndrea Shepard
2014-04-26fix uninitialized memory reads from test_geoip_with_pt. Found with valgrindNick Mathewson
2014-04-26Fix memory leak in test_geoipNick Mathewson
2014-04-26Fix memory leak in test_onion_queuesNick Mathewson
2014-04-26Fix memory leaks in test_circuit_timeoutNick Mathewson
Found with valgrind.
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-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-02Unit tests for connection_edge_process_resolved_cellNick Mathewson
Also rename a function to be more accurate (resolve->resolved)
2014-03-13Fix some leaks/missed checks in the unit testsNick Mathewson
Coverity spotted these.
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-02-28Unit tests for test_routerkeys_write_fingerprintNick Mathewson
2014-02-12Initial unit tests for OOM handlingNick Mathewson
2014-02-11Free leakable values in the unit tests.Nick Mathewson
Thanks, Coverity! (CID 1171414, 1171415, 1171416)
2014-02-06add test for node_get_verbose_nickname_by_idQingping Hou
2014-02-06remove node_describe_by_id() functionQingping Hou
This function is not used anymore
2014-01-29add test case for node_describe_by_idQingping Hou
2014-01-29add test case for hidden service async eventsQingping Hou
2014-01-17Add an --accel switch to run unit tests with crypto accelerationNick Mathewson
2013-11-22Fix another unit test memory leak. CID1087949,CID1087950.Nick Mathewson
2013-11-18Merge branch 'backtrace_squashed'Nick Mathewson
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
2013-11-18Unit tests for new functions in log.cNick Mathewson
2013-10-28Merge branch 'morestats4' into morestats5Karsten Loesing
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
2013-09-08Fix unit tests with --disable-curve25519Nick Mathewson
2013-09-04Merge branch 'maint-0.2.4'Roger Dingledine
Conflicts: src/test/test.c
2013-09-04refactor and give it unit testsRoger Dingledine
2013-08-15Fix a wide line in test_geoip_with_ptNick Mathewson
2013-08-15Merge branch 'bug5040_4773_rebase_3'Nick Mathewson
2013-08-15Unit tests for ext_or_id_map.Nick Mathewson
2013-08-15Split out buffers and socks tests into separate modules.Nick Mathewson
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.
2013-08-15If a single client connects with multiple transports, note all transports.George Kadianakis
2013-08-15Trivially change unittests to make them more readable.George Kadianakis
Pluggable transport names are now in alphabetical order like they appear in the bridge-ip-transports string.
2013-08-15Make check-spaces happy.George Kadianakis
2013-08-15Fix some unittests that broke when we added bridge-ip-transports.George Kadianakis
2013-08-15Add a unittest for the bridge-ip-transports extra-info line.George Kadianakis
2013-07-19Regression test for destroy cell queueNick Mathewson
This exercises the code that crashed and caused #9296.
2013-07-18Add transport information to the GeoIP database.George Kadianakis
2013-07-18Start of a unit test for options_validate.Nick Mathewson
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.
2013-07-18Unit tests for cell queues.Nick Mathewson
This removes some INLINE markers from functions that probably didn't need them.
2013-07-10Add some basic unit tests for the circuit map data structure.Nick Mathewson
These show off the new mocking code by mocking the circuitmux code so that we can test the circuit map code in isolation.
2013-07-10Completely refactor how FILENAME_PRIVATE worksNick Mathewson
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.
2013-06-12Fix #9043 - simplyfy the code and use EVP_PKEY_cmp instead of pkey_eq / ↵Marek Majkowski
tor_tls_evp_pkey_eq
2013-06-10Bug #5170 - make pkey_eq testable, introduce test_tortls.cMarek Majkowski
2013-05-31Test functions used for TB_EMPTY and CELL_STATS events.Karsten Loesing
2013-05-15Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2013-05-15Fix unit tests to pass after fix for #8879Nick Mathewson