summaryrefslogtreecommitdiff
path: root/src/test/test.c
AgeCommit message (Collapse)Author
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
2013-05-09Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2013-05-09Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4Nick Mathewson
2013-05-09Don't run off the end of the array-of-freelistsNick Mathewson
This is a fix for bug 8844, where eugenis correctly notes that there's a sentinel value at the end of the list-of-freelists that's never actually checked. It's a bug since the first version of the chunked buffer code back in 0.2.0.16-alpha. This would probably be a crash bug if it ever happens, but nobody's ever reported something like this, so I'm unsure whether it can occur. It would require write_to_buf, write_to_buf_zlib, read_to_buf, or read_to_buf_tls to get an input size of more than 32K. Still, it's a good idea to fix this kind of thing!
2013-04-18Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
Conflicts: src/common/crypto.c
2013-04-18Fix some wide linesNick Mathewson
2013-04-11socks5 will ask for username/password if we offer itRoger Dingledine
Commit a264c4fe made the socks5 server prefer auth 2 if it's offered, but it didn't update the unit test to expect it.
2013-04-11socks5 will ask for username/password if we offer itRoger Dingledine
Commit a264c4fe made the socks5 server prefer auth 2 if it's offered, but it didn't update the unit test to expect it.
2013-04-05Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2013-04-05test.c: Try to create a more random temporary directory for our workspace ↵Peter Palfrader
(re: Bug#8638)
2013-03-15Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
Conflicts: src/or/routerlist.c
2013-03-01More unit tests for old TAP onion handshake.Nick Mathewson
The test coverage for onion_tap.c is now at 89%, up from 67%.
2013-02-23Remove a bunch of unused macro definitionsNick Mathewson
2013-02-11Fix a null-deref-on-fail in unit testsNick Mathewson
If geoip_format_bridge_stats() returned NULL when it should have returned a string, we would have tried to deref NULL, and died. Not a big deal in the unit tests, but still worth fixing. Found by coverity; This is CID 743384.