summaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2015-09-15Add tests for compat_libeventOla Bini
2015-09-09Bump default test-network bootstrap time to 35 sec (see 16953)Nick Mathewson
2015-09-09Increase default boostrap time in test-network.shteor (Tim Wilson-Brown)
Increase default boostrap time in test-network.sh to 30 seconds, for larger networks like bridges+ipv6+hs. This avoids the failure-hiding issues inherent in the retry approach in #16952.
2015-09-08Add "make test-network-all" to verify multiple test networksteor (Tim Wilson-Brown)
make test-network-all is Makefile target which verifies a series of test networks generated using test-network.sh and chutney. It runs IPv6 and mixed version test networks if the prerequisites are available. Each test network reports PASS, FAIL, or SKIP. Closes ticket 16953. Patch by "teor". Also adds "--hs-multi-client 1" option to TEST_NETWORK_FLAGS. This resolves #17012. Larger networks, such as bridges+hs, may fail until #16952 is merged.
2015-09-08Make test-network.sh more robust against arguments containing spacesteor (Tim Wilson-Brown)
2015-09-03Fix windows test_keygen.sh. This time I think I have it!Nick Mathewson
2015-09-03Use absolute path for datadir in test_keygen.shNick Mathewson
2015-09-03Make test_keygen.sh dump what the problem is on cmp failureNick Mathewson
2015-09-03Add a little more output to test_keygen.sh: try to debug windowsNick Mathewson
2015-09-02Add test_keygen.sh to distNick Mathewson
2015-09-02Merge remote-tracking branch 'teor/master'Nick Mathewson
2015-09-02Remove remaining references to "nulterminate" in commentsNick Mathewson
Thanks to Roger for spotting this!
2015-09-01Remove the unused "nulterminate" option to buf_pullup()Nick Mathewson
I was going to add a test for this, but I realized that it had no users. So, removed.
2015-09-02Test bridges and hidden services in make test-networkteor (Tim Wilson-Brown)
Make "bridges+hs" the default test network. This tests almost all tor functionality during make test-network, while allowing tests to succeed on non-IPv6 systems. Requires chutney commit 396da92 in test-network-bridges-hs. Closes tickets 16945 (tor), 16946 (chutney) . Patches by "teor".
2015-08-26Fix some memory issues in test_dns.cNick Mathewson
2015-08-26Resolve check-spaces in test_dns.cNick Mathewson
2015-08-26fix compilation warnings in test_dns.cNick Mathewson
2015-08-26Merge remote-tracking branch 'rl1987/test_dns_resolve_rebased'Nick Mathewson
2015-08-25Make test_checkdir.c dirent include consistent with other filesNick Mathewson
2015-08-23Unit test dns_resolve(), dns_clip_ttl(), dns_get_expiry_ttl().rl1987
2015-08-21Do not try to chmod test_keygen.sh: It is not generated by configure.Nick Mathewson
2015-08-21Fix a bunch of check-spaces complaintsSebastian Hahn
2015-08-21Ensure worker threads actually exit when it is timeSebastian Hahn
This includes a small refactoring to use a new enum (workqueue_reply_t) for the return values instead of just ints.
2015-08-20New testcase exposing bug during threadpool shutdownSebastian Hahn
We don't want to accept any work after one of our worker functions has returned WQ_RPL_SHUTDOWN. This testcase currently fails, because we do not actually stop any of the worker threads.
2015-08-19Merge branch 'ed25519_keygen_squashed'Nick Mathewson
2015-08-19When we infer the master key from the certificate, save it to disk.Nick Mathewson
2015-08-19Document test_keygen.sh a little moreNick Mathewson
2015-08-19Add test_keygen tests for all log outputs; improve keygen outputs.Nick Mathewson
2015-08-19Suppress fingerprint display in test_keygen.shNick Mathewson
2015-08-19Integreate test_keygen.sh into 'make check'.Nick Mathewson
2015-08-19Resolve failing test_keygen tests.Nick Mathewson
2015-08-19Checkpoint work on ed25519 keygen improvements.Nick Mathewson
Needs changes file, documentation, test integration, more tests.
2015-08-18Merge remote-tracking branch 'teor/feature14882-TestingDirAuthVoteIsStrict-v3'Nick Mathewson
2015-08-18Merge branch 'decouple_controller_events_squashed'Nick Mathewson
2015-08-18Use thread-local storage to block event_queue recursion.Nick Mathewson
2015-08-18Refactor initialization logic for control-event-queueNick Mathewson
This puts the init logic in a separate function, which we will need once we have locking.
2015-08-18Make the control/events test run TT_FORKNick Mathewson
Some of them like to munge the global event mask, so it's important to have that behavior isolated.
2015-08-18Refactor our logic for sending events to controllersNick Mathewson
Previously we'd put these strings right on the controllers' outbufs. But this could cause some trouble, for these reasons: 1) Calling the network stack directly here would make a huge portion of our networking code (from which so much of the rest of Tor is reachable) reachable from everything that potentially generated controller events. 2) Since _some_ events (EVENT_ERR for instance) would cause us to call connection_flush(), every control_event_* function would appear to be able to reach even _more_ of the network stack in our cllgraph. 3) Every time we generated an event, we'd have to walk the whole connection list, which isn't exactly fast. This is an attempt to break down the "blob" described in http://archives.seul.org/tor/dev/Mar-2015/msg00197.html -- the set of functions from which nearly all the other functions in Tor are reachable. Closes ticket 16695.
2015-08-18Add unit tests for dirserv_set_routerstatus_testingteor
Test that TestingDirAuthVote{Exit,Guard,HSDir}[Strict] work on routersets matching all routers, one router, and no routers. TestingDirAuthVote{Exit,Guard,HSDir} set the corresponding flag on routerstatuses which match the routerset, but leave other flags unmodified. TestingDirAuthVote{Exit,Guard,HSDir}Strict clear the corresponding flag on routerstatuses which don't match the routerset.
2015-08-17Bring the dimap tests up to 100%Nick Mathewson
2015-08-14Fix an overzealous compiler warning in the testsNick Mathewson
2015-08-13Increase unit test coverage on container.cNick Mathewson
2015-08-11Fix a 32-bit compilation warningNick Mathewson
2015-08-05Add a compat function to check how much disk space is free.Nick Mathewson
Closes ticket 16734.
2015-08-05Let's try to get test_workqueue working on windowsNick Mathewson
2015-08-03When building with coverage, run chutney with coverageNick Mathewson
Previously, this required me to do stuff like 'cp src/or/tor-cov src/or/tor' , which is pretty embarrassing.
2015-07-29Merge remote-tracking branch 'teor/feature14175-chutney-performance-v2'Nick Mathewson
2015-07-27Allow a single trailing `.` when validating FQDNs from SOCKS.Yawning Angel
URI syntax (and DNS syntax) allows for a single trailing `.` to explicitly distinguish between a relative and absolute (fully-qualified) domain name. While this is redundant in that RFC 1928 DOMAINNAME addresses are *always* fully-qualified, certain clients blindly pass the trailing `.` along in the request. Fixes bug 16674; bugfix on 0.2.6.2-alpha.
2015-07-23Fix a couple more msvc issues, reported by gisle vanemNick Mathewson
2015-07-21Improve the workqueue test help message.cypherpunks
The workqueue test help message has two issues. First, the message uses 4 space indentation when 2 space indentation seems more common. Second, the help message misses some options. This commit fixes both issues.