aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_consdiffmgr.c
AgeCommit message (Collapse)Author
2019-01-16Bump copyright date to 2019.Nick Mathewson
2018-10-01extract networkstatus parsing to its own file.Nick Mathewson
2018-10-01Move routerparse and parsecommon to their own module.Nick Mathewson
2018-07-05Fix every include path changed in the previous commit (automated)Nick Mathewson
I am very glad to have written this script.
2018-07-05Clean up include paths for libtor-evloop (automated)Nick Mathewson
2018-07-01Remove needless includes from or.hNick Mathewson
or.h should really include only the minimum of stuff from or/*, common/*, and lib/*.
2018-06-21Rectify include paths (automated)Nick Mathewson
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Update copyrights to 2018.Nick Mathewson
2018-06-15Extract networkstatus_t and ..sr_info_t into their own headersNick Mathewson
2018-04-06crypto: Refactor (P)RNG functionality into new crypto_rand module.Isis Lovecruft
* ADD new /src/common/crypto_rand.[ch] module. * ADD new /src/common/crypto_util.[ch] module (contains the memwipe() function, since all crypto_* modules need this). * FIXES part of #24658: https://bugs.torproject.org/24658
2017-12-05Implement the various get_foodir_*() functions.Nick Mathewson
2017-09-15Run our #else/#endif annotator on our source code.Nick Mathewson
2017-08-24apply ahf's test_assert_null.cocciNick Mathewson
2017-07-27Queue consensus diffs at LOW priority.Nick Mathewson
Fixes bug 22883.
2017-05-15Merge remote-tracking branch 'public/prop140_aftermath_cfg'Nick Mathewson
2017-05-12Test fix: expect old consensuses to be deleted if not deflate-compressedNick Mathewson
2017-05-05Turn consdiffmgr.cache_max_age_hours into a parameterNick Mathewson
2017-05-04Remove some unused digests from test_consdiffmgr.cNick Mathewson
These were unused before I started working on #22143 -- I just found them while I was lookinging for digests to update.
2017-05-04bug#22143/prop#140: in consdiffmgr, store and use digest-as-signedNick Mathewson
We need to index diffs by the digest-as-signed of their source consensus, so that we can find them even from consensuses whose signatures are encoded differently.
2017-04-27Pre-compress consensus diffs with supported consensus methods.Nick Mathewson
2017-04-27Store archived consensuses compressed on disk.Nick Mathewson
I'm just using gzip compression now, for performance.
2017-04-24Fix some leaks in the consdiffmgr testsNick Mathewson
2017-04-24Remove a checklist item that was already testedNick Mathewson
The item referred to the cdm_ht_set_status() case where the item was not already in the hashtable. But that already happens naturally when we scan the directory on startup... and we already have a test for that.
2017-04-24consdiffmgr test: do not launch a diff task that is already pendingNick Mathewson
2017-04-24consdiffmgr: tests for consdiffmgr_validate()Nick Mathewson
2017-04-24consdiffmgr: add tests for cdm_entry_get_sha3_valueNick Mathewson
2017-04-24consdiffmgr test: add a test for updating ht on clean/rescan.Nick Mathewson
This brings us back up to ~94% coverage
2017-04-24Expand diff-management test to cover reloading items from diskNick Mathewson
2017-04-24consdiffmgr tests: add tests to validate diff lookup/applicationNick Mathewson
This commit adds some helper functions to look up the diff from one consensus and to make sure that applying it leads to another. Then we add them throughout the existing test cases. Doing this turned up a reference-leaking bug in consensus_diff_worker_replyfn.
2017-04-24consdiffmgr: Enable in-progress test that was not previously workingNick Mathewson
Also, add a list of additional tests to write.
2017-04-24consdiffmgr: function to re-validate stored sha3 digests at startupNick Mathewson
2017-04-24Consdiffmgr test: Make sure that diffs are removableNick Mathewson
A diff is removable as soon as it no longer takes you to the most recent consensus of the appropriate flavor.
2017-04-24Test the easiest cases of consdiffmgr_cleanup.Nick Mathewson
One more to go: deleting the old diffs.
2017-04-24consdiffmgr non-test: check for initialization failureNick Mathewson
Unfortunately, this test doesn't work, so I've left it defined-out. There is currently no way in our unit tests to catch a fatal assertion failure.
2017-04-24consdiffmgr test: survive failures to compute a diff.Nick Mathewson
2017-04-24Another consdiffmgr test: only generate the diffs that are neededNick Mathewson
This test makes sure that we only generate the diffs we actually want, rather than regenerating all the diffs every time anything changes.
2017-04-24Unit tests for consdiffmgr moduleNick Mathewson
Initial tests. These just try adding a few consensuses, looking them up, and making sure that consensus diffs are generated in a more or less reasonable-looking way. It's enough for 87% coverage, but it leaves out a lot of functionality.