aboutsummaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2014-09-25Test vectors for PBKDF2 from RFC6070Nick Mathewson
2014-09-25Test vectors for scrypt from draft-josefsson-scrypt-kdf-00Nick Mathewson
2014-09-25Rudimentary-but-sufficient passphrase-encrypted box code.Nick Mathewson
See crypto_pwbox.c for a description of the file format. There are tests for successful operation, but it still needs error-case tests.
2014-09-25More generic passphrase hashing code, including scrypt supportNick Mathewson
Uses libscrypt when found; otherwise, we don't have scrypt and we only support openpgp rfc2440 s2k hashing, or pbkdf2. Includes documentation and unit tests; coverage around 95%. Remaining uncovered code is sanity-checks that shouldn't be reachable fwict.
2014-08-28Rename secret_to_key to secret_to_key_rfc2440Nick Mathewson
2014-08-27Initialize crash handler in unit testsNick Mathewson
This way, we don't get locking failures when we hit an assertion in the unit tests. Also, we might find out about unit test bugs from folks who can't do gdb.
2014-08-26Merge remote-tracking branch 'public/bug10163'Nick Mathewson
2014-08-24Use the ARRAY_LENGTH macro more consistently.Nick Mathewson
2014-08-21Fix memory leaks in test_entrynodes.cNick Mathewson
[Coverity CID 1232087 and 1232088]
2014-08-20Merge branch 'bug12205_take2_squashed'Nick Mathewson
2014-08-20Whitespace fixesNick Mathewson
2014-08-20Small cleanups to test_entry_is_time_to_retryNick Mathewson
2014-08-20Unit testing entry_is_time_to_retry().rl1987
2014-08-20Merge branch 'bug10116_squashed'Nick Mathewson
2014-08-20fix remaining compilation problemsNick Mathewson
2014-08-20Fix entrynodes test fails because of outdated test vectors.George Kadianakis
2014-08-15Remove implementation code for all pre-13 consensus methods.Nick Mathewson
Also remove a test for the way that we generated parameter votes before consensus method 12.
2014-08-15Merge remote-tracking branch 'origin/maint-0.2.5'Nick Mathewson
2014-08-15Remove stale printfs from buffer/zlib_fin_at_chunk_end testNick Mathewson
These got committed by mistake.
2014-08-13Merge remote-tracking branch 'origin/maint-0.2.5'Nick Mathewson
2014-08-13Apply an MSVC compilation fix from Gisle VanemNick Mathewson
This fixes a double-define introduced in 28538069b2f1909a7600ec6d
2014-08-13Apply coccinelle script to replace malloc(a*b)->calloc(a,b)Nick Mathewson
2014-07-28Cast long long arguments to (int) for tt_int_op()Peter Palfrader
2014-07-21Merge remote-tracking branch 'origin/maint-0.2.5'Nick Mathewson
2014-07-21Fix warning on building with buffereventsSathyanarayanan Gunasekaran
Fixes #11578
2014-07-16Move test_descriptors.txt to an include fileNick Mathewson
Making the text file work out-of-tree didn't work on windows. Maybe we can get it working that way later.
2014-07-16Fix tests when building out-of-treeNick Mathewson
(This was too hard. Silly autoconf.)
2014-07-16Fix wide lines, make entry_is_live() non-inlineNick Mathewson
2014-07-16Merge remote-tracking branch 'asn/bug12202'Nick Mathewson
2014-07-16Merge remote-tracking branch 'asn/bug12207_second_draft'Nick Mathewson
2014-07-16Add a tor_ftruncate to replace ftruncate.Nick Mathewson
(Windows doesn't have ftruncate, and some ftruncates do not move the file pointer to the start of the file.)
2014-07-16Add an option to overwrite logsArlo Breault
* Issue #5583
2014-07-16When making a tempdir for windows unit tests, avoid an extra backslashNick Mathewson
The extra \ is harmless, but mildly unpleasant. Fixes 12392; bugfix on 0.2.2.25-alpha where we started using GetTempDir(). Based on a patch by Gisle Vanem.
2014-07-16Fixed fgets_eagain unit test.cypherpunks
On a non-blocking pipe fgets sets EAGAIN when it encounters partial lines. No error is set on full lines or EOF. EOF is reached when the writing end of the pipe is closed. Partial lines and full lines are both returned by fgets, EOF results in NULL. Mention of this behaviour can be found in #1903 and #2045.
2014-07-09Change interface of router_descriptor_is_too_old().George Kadianakis
2014-06-25Change the interface of entry_is_live() to take a bitmap.George Kadianakis
2014-06-25Basic entry_is_live() unittest.George Kadianakis
2014-06-24Add the entrynodes.c unit tests.George Kadianakis
2014-06-20Thread support is now requiredNick Mathewson
Long ago we supported systems where there was no support for threads, or where the threading library was broken. We shouldn't have do that any more: on every OS that matters, threads exist, and the OS supports running threads across multiple CPUs. This resolves tickets 9495 and 12439. It's a prerequisite to making our workqueue code work better, since sensible workqueue implementations don't split across multiple processes.
2014-06-20Remove code for Windows CE supportNick Mathewson
As far as I know, nobody has used this in ages. It would be a pretty big surprise if it had worked. Closes ticket 11446.
2014-06-15Add some test descriptors to src/test/.George Kadianakis
2014-06-14Merge branch 'bug8746_v2_squashed'Nick Mathewson
Conflicts: src/common/include.am
2014-06-14refactor win/nix handling for test_spawn_background*()Nick Mathewson
Instead of having a #if ... for every function, just define TEST_CHILD to the right patch and EOL to the expected line terminator.
2014-06-14More unit tests for process spawningNick Mathewson
Try killing a running process; try noticing that a process has exited without checking its output; verify that waitpid_cb (when present) is set to NULL when you would expect it to be.
2014-05-22Merge remote-tracking branch 'andrea/bug11476'Nick Mathewson
2014-05-12Add --disable-mempools configure optionAndrea Shepard
2014-05-11fix whitespaceNick Mathewson
2014-05-11Quench clang's complaints with -Wshorten-64-to-32 when time_t is not long.dana koch
On OpenBSD 5.4, time_t is a 32-bit integer. These instances contain implicit treatment of long and time_t as comparable types, so explicitly cast to time_t.
2014-05-08One more 64->32Nick Mathewson
2014-05-08Fix numerous 64->32 errors in the unit testsNick Mathewson
Before the 11825 fix, these were all silently ignored.