aboutsummaryrefslogtreecommitdiff
path: root/src/test/test.c
AgeCommit message (Collapse)Author
2016-12-14Merge branch 'dgoulet_ticket19043_030_03_squashed'Nick Mathewson
2016-12-14prop224: Add unittests handling v3 ESTABLISH_INTRO cells.George Kadianakis
Test for both v2 and v3 ESTABLISH_INTRO handling.
2016-11-24Refactor circuit_predict_and_launch_newChelsea H. Komlo
2016-11-04Merge branch 'ticket17238_029_02-resquash'Nick Mathewson
Conflicts: src/or/rendclient.c src/or/rendcommon.c src/or/routerparse.c src/test/test_dir.c src/trunnel/ed25519_cert.h
2016-11-04test: Add prop224 directory cache unit testsDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org> Signed-off-by: George Kadianakis <desnacked@riseup.net>
2016-11-04test: Add prop224 descriptor unit testsDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org> Signed-off-by: George Kadianakis <desnacked@riseup.net>
2016-09-26checkpoint basic protover backendNick Mathewson
2016-08-20Unit test for connection_handle_oos()Andrea Shepard
2016-07-06test coverage on onion_fast: 0%->100%Nick Mathewson
2016-07-06Improve test coverage a little on onion*.cNick Mathewson
2016-07-01prop250: Add unit testsDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org> Signed-off-by: George Kadianakis <desnacked@riseup.net>
2016-06-11Add -Wmissing-variable-declarations, with attendant fixesNick Mathewson
This is a big-ish patch, but it's very straightforward. Under this clang warning, we're not actually allowed to have a global variable without a previous extern declaration for it. The cases where we violated this rule fall into three roughly equal groups: * Stuff that should have been static. * Stuff that was global but where the extern was local to some other C file. * Stuff that was only global when built for the unit tests, that needed a conditional extern in the headers. The first two were IMO genuine problems; the last is a wart of how we build tests.
2016-05-11Merge branch 'pubsub_squashed'Nick Mathewson
2016-05-11Basic work on a publish/subscribe abstractionNick Mathewson
The goal here is to provide a way to decouple pieces of the code that want to learn "when something happens" from those that realize that it has happened. The implementation here consists of a generic backend, plus a set of macros to define and implement a set of type-safe frontends.
2016-04-19Basic 'handle' implementation and tests.Nick Mathewson
This abstraction covers the case where one part of the program needs to refer to another object that is allowed to disappear.
2016-02-27Update the copyright year.Nick Mathewson
2016-02-04Fix two problems in the 0.2.8.x unit testsNick Mathewson
1. We were sometimes using libevent uninitialized, which is Not Allowed. 2. The malformed-PTR dns test was supposed to get a -1 output... but the test was wrong, since it forgot that in-addr.arpa addresses are in reverse order. Bugs not in any released tor.
2015-12-16Prop210: Refactor connection_get_* to produce lists and countsteor (Tim Wilson-Brown)
2015-11-25Initialize libevent before periodic eventscypherpunks
The initialization of libevent interferes with other tests so we also fork the circuit_timeout test.
2015-11-17Some unit tests now require that periodic events be initialized.Nick Mathewson
2015-10-21Fix whitespacesNick Mathewson
2015-10-21Merge remote-tracking branch 'twstrike/util_process_tests'Nick Mathewson
2015-10-07Fix "make check-spaces"Nick Mathewson
2015-10-07Merge remote-tracking branch 'twstrike/procmon_tests'Nick Mathewson
Conflicts: src/test/include.am src/test/log_test_helpers.c src/test/log_test_helpers.h
2015-10-06Merge remote-tracking branch 'twstrike/rendcache_tests'Nick Mathewson
Conflicts: src/test/include.am src/test/rend_test_helpers.c src/test/rend_test_helpers.h
2015-10-02Merge remote-tracking branch 'twstrike/dir-handle-cmd-get'Nick Mathewson
2015-10-02Fix "make check-spaces"Nick Mathewson
2015-10-02Merge remote-tracking branch 'twstrike/tortls_tests'Nick Mathewson
2015-10-02Fix a test failureNick Mathewson
2015-10-02Merge remote-tracking branch 'donncha/feature14846_4'Nick Mathewson
2015-10-02Clean up compat_libevent testsNick Mathewson
2015-10-02Merge remote-tracking branch 'twstrike/compat_libevent_tests'Nick Mathewson
2015-09-15Add tests for directory_handle_command_getReinaldo de Souza Jr
2015-09-15Add tests for procmon. These currently fail. Investigation should happen ↵Ola Bini
before submitting
2015-09-15Add tests for util_formatOla Bini
2015-09-15Add tests for util_processOla Bini
2015-09-15Add tests for compat_libeventOla Bini
2015-09-15Add tests for tortls.cOla Bini
2015-09-15Add tests for the rend cacheOla Bini
2015-08-25Store service descriptors in the service descriptor cacheDonncha O'Cearbhaill
Service descriptors are now generated regardless of the the PublishHidServDescriptors option. The generated descriptors are stored in the service descriptor cache. The PublishHidServDescriptors = 1 option now prevents descriptor publication to the HSDirs rather than descriptor generation.
2015-08-23Unit test dns_resolve(), dns_clip_ttl(), dns_get_expiry_ttl().rl1987
2015-05-28Merge branch '12498_ed25519_keys_v6'Nick Mathewson
Fixed numerous conflicts, and ported code to use new base64 api.
2015-05-28Start testing cell encoders/processers for the v3 handshake.Nick Mathewson
An earlier version of these tests was broken; now they're a nicer, more robust, more black-box set of tests. The key is to have each test check a handshake message that is wrong in _one_ way.
2015-05-28Key-pinning back-end for directory authorities.Nick Mathewson
This module implements a key-pinning mechanism to ensure that it's safe to use RSA keys as identitifers even as we migrate to Ed25519 keys. It remembers, for every Ed25519 key we've seen, what the associated Ed25519 key is. This way, if we see a different Ed25519 key with that RSA key, we'll know that there's a mismatch. We persist these entries to disk using a simple format, where each line has a base64-encoded RSA SHA1 hash, then a base64-endoded Ed25519 key. Empty lines, misformed lines, and lines beginning with a # are ignored. Lines beginning with @ are reserved for future extensions.
2015-04-28Add "ADD_ONION"/"DEL_ONION" and "GETINFO onions/*" to the controller.Yawning Angel
These commands allow for the creation and management of ephemeral Onion ("Hidden") services that are either bound to the lifetime of the originating control connection, or optionally the lifetime of the tor instance. Implements #6411.
2015-02-23Remove lingering mempool codecypherpunks
2015-02-18Merge branch 'bug9321_rerebase'Nick Mathewson
Conflicts: src/or/dirvote.h src/test/include.am src/test/test_entrynodes.c
2015-02-18Add unittests for the guardfraction feature.George Kadianakis
2015-02-06Merge remote-tracking branch 'sebastian/bug13993'Nick Mathewson
2015-02-06Fix check-spaces complaintsSebastian Hahn