aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAge
* Tests for siphash, from reference implementation.Nick Mathewson2014-02-12
|
* Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson2014-02-07
|\
| * Survive fedora's openssl in our benchmarksNick Mathewson2014-02-07
| | | | | | | | | | | | | | | | Apparently fedora currently has ECDH but not P224. This isn't a huge deal, since we no longer use OpenSSL's P224 ever (see #9780 and 72c1e5acfe1c6). But we shouldn't have segfaulting benchmarks really. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
* | Use the right functions; strncpy is usually not the answerNick Mathewson2014-02-07
| |
* | add test case for node_get_verbose_nicknameQingping Hou2014-02-06
| |
* | 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
* | fix longname returned in HS_DESC control eventsQingping Hou2014-02-06
| | | | | | | | | | | | | | | | | | According to control spec, longname should not contain any spaces and is consists only of identy_digest + nickname added two functions: * node_get_verbose_nickname_by_id() * node_describe_longname_by_id()
* | Rename sun to s_un in test_addr.cNick Mathewson2014-02-06
| | | | | | | | | | | | Apparently the compiler on solaris 9 didn't like "sun" as an identifier. Fix for bug 10565; bugfix on 0.2.5.1-alpha.
* | Distcheck repair: add new python testing code to "tarballs"Nick Mathewson2014-02-04
| | | | | | | | 'make distcheck' now passes again.
* | test_config.c: log which address should have failedNick Mathewson2014-02-03
| |
* | Clean up test_hs.c: warning fix; tor_free() usage.Nick Mathewson2014-02-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My OSX laptop rightly gave a warning because of sticking strlen() into an int, but once I took a closer look... it appears that the strlen() was part of a needlessly verbose implementation for tor_strdup(). While I was there, I fixed the usage of tor_free() in test_hs.c: It checks for NULL, and it zeros its argument. So instead of if (foo) { tor_free(foo); foo = NULL; } we should just say tor_free(foo);
* | More fixes to rip out all of the v2 directory code.Karsten Loesing2014-02-03
| | | | | | | | (This was a squash commit, but I forgot to squash it. Sorry! --Nick)
* | check-spaces fixes for test_router.cNick Mathewson2014-02-03
| |
* | Merge remote-tracking branch 'houqp/hs_control'Nick Mathewson2014-02-03
|\ \
| * | add test case for node_describe_by_idQingping Hou2014-01-29
| | |
| * | add test case for hidden service async eventsQingping Hou2014-01-29
| | |
* | | slownacl's pure-python curve25519 lets us test ntor everywhere.Nick Mathewson2014-02-03
| | | | | | | | | | | | | | | | | | Improvement on f308adf8382bc7e61ea05a172, where we made the ntor unit tests run everywhere... so long as a python curve25519 module was installed. Now the unit tests don't require that module.
* | | Rip out all of the v2 directory code.Nick Mathewson2014-01-29
|/ / | | | | | | | | | | The remaining vestige is that we continue to publish the V2dir flag, and that, for the controller, we continue to emit v2 directory formats when requested.
* | Coverate in util.c: test that tor_parse_* rejects negative base.Nick Mathewson2014-01-17
| |
* | Add an --accel switch to run unit tests with crypto accelerationNick Mathewson2014-01-17
| |
* | Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson2013-12-17
|\| | | | | | | | | | | | | | | Conflicts: src/or/microdesc.c Conflict because one change was on line adjacent to line where 01206893 got fixed.
| * Merge remote-tracking branch 'public/bug10409_023' into maint-0.2.4Nick Mathewson2013-12-17
| |\
| | * Avoid free()ing from an mmap on corrupted microdesc cacheNick Mathewson2013-12-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'body' field of a microdesc_t holds a strdup()'d value if the microdesc's saved_location field is SAVED_IN_JOURNAL or SAVED_NOWHERE, and holds a pointer to the middle of an mmap if the microdesc is SAVED_IN_CACHE. But we weren't setting that field until a while after we parsed the microdescriptor, which left an interval where microdesc_free() would try to free() the middle of the mmap(). This patch also includes a regression test. This is a fix for #10409; bugfix on 0.2.2.6-alpha.
* | | Add checks to prevent memcmp(.,.,negative) in tests (CID 1064417)Nick Mathewson2013-11-22
| | |
* | | Fix another unit test memory leak. CID1087949,CID1087950.Nick Mathewson2013-11-22
| | |
* | | Fix a bunch of coverity-spotted unit test resource leaksNick Mathewson2013-11-22
| | | | | | | | | | | | CIDs: 1130994, 1130993, 1130992, 1130991
* | | Remove needless fd var from test. CID 1130989.Nick Mathewson2013-11-22
| | |
* | | Whitespace cleanupNick Mathewson2013-11-20
| | |
* | | Fix crypto/digests testNick Mathewson2013-11-18
| | |
* | | Merge branch 'finish_prop157'Nick Mathewson2013-11-18
|\ \ \
| * | | Make the dir-key-crosscert element requiredNick Mathewson2013-11-14
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In proposal 157, we added a cross-certification element for directory authority certificates. We implemented it in 0.2.1.9-alpha. All Tor directory authorities now generate it. Here, as planned, make it required, so that we can finally close proposal 157. The biggest change in the code is in the unit test data, where some old hardcoded certs that we made long ago have become no longer valid and now need to be replaced.
* | | Fix whitespaceNick Mathewson2013-11-18
| | |
* | | 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
| * | | Tests for backtrace.cNick Mathewson2013-11-18
| | | | | | | | | | | | | | | | | | | | These need to be a separate executable, since the point of backtrace.c is that it can crash and write stuff.
| * | | Unit tests for new functions in log.cNick Mathewson2013-11-18
| | | |
| * | | Add a signal-safe decimal formatting functionNick Mathewson2013-07-19
| | | |
* | | | Fix test_cmdline_args to work with old opensslNick Mathewson2013-11-11
| | | | | | | | | | | | | | | | | | | | | | | | If openssl was old, Tor would add a warning about its version in between saying "no torrc found, using reasonable defaults" and "configuration was valid".
* | | | Documentation and tests for 10060Nick Mathewson2013-11-07
| | | |
* | | | 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
| * | | | squash! Pass const uint64_t pointers, document array length.Karsten Loesing2013-10-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't cast uint64_t * to const uint64_t * explicitly. The cast is always safe, so C does it for us. Doing the cast explitictly can hide bugs if the input is secretly the wrong type. Suggested by Nick.
| * | | | Pass const uint64_t pointers, document array length.Karsten Loesing2013-09-12
| | | | | | | | | | | | | | | | | | | | Suggested by nickm.
| * | | | Pass around const struct timeval * instead of struct timeval.Karsten Loesing2013-09-12
| | | | | | | | | | | | | | | | | | | | Suggested by nickm.
| * | | | Test functions used for TB_EMPTY and CELL_STATS events.Karsten Loesing2013-05-31
| | | | |
* | | | | Make test_cmdline_args.py work with older pythonsNick Mathewson2013-10-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I was using the assertIn() function on unit tests, which Python 2.7 introduced. But we'd like to be able to run our unit tests on Pythons from older operating systems.
* | | | | Fix out-of-tree "make check-local"Nick Mathewson2013-10-11
| | | | |
* | | | | When possible, run the ntor python integration tests tooNick Mathewson2013-10-11
| | | | |
* | | | | When python is available, run the commandline unit tests from "make check"Nick Mathewson2013-10-11
| | | | |
* | | | | Merge branch 'bug1376'Nick Mathewson2013-10-11
|\ \ \ \ \
| * | | | | Fix some whitespace; tighten the tests.Nick Mathewson2013-10-11
| | | | | |