aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Expand)AuthorAge
...
* | | Use test_eq et al in spawn_background unit testsEsteban Manchado Velázquez2012-03-08
* | | Use test_streq in format_helper_exit_status testsEsteban Manchado Velázquez2012-03-08
* | | Improve get_parent_directory unit tests•••* Add more test cases to the get_parent_directory tests * Switch the parameter order so that the expected value is the first one Esteban Manchado Velázquez2012-03-08
* | | Improve listdir unit testsEsteban Manchado Velázquez2012-03-08
* | | Improve a bit asprintf unit testsEsteban Manchado Velázquez2012-03-08
* | | Rewrite the find_str_at_start_of_line unit testsEsteban Manchado Velázquez2012-03-08
* | | Improve/extend strtok_r unit tests•••* Add several failing tests (embedded in an "#if 0" block) for behaviour that doesn't match strtok_r * Add another, passing, more interesting test * Use test_eq_ptr(NULL, ...) instead of test_assert(NULL == ...) Esteban Manchado Velázquez2012-03-08
* | | Improve tor_sscanf tests•••* Add many new test cases, tweak/improve existing ones, reorganize them a bit * Switch the parameters in all test_eq calls so the expected value is the first * Change all the "r = tor_sscanf(...);\ntest_eq(1, r)" to the more compact "test_eq(1, tor_sscanf(...))". It may be a tiny bit harder to find the tor_sscanf calls (it's the long lines anyway), but it saves a lot of lines, which should help readability. Esteban Manchado Velázquez2012-03-08
* | | Improve test case for read_escaped_data unit testEsteban Manchado Velázquez2012-03-08
* | | Trivial readability changes in mmap unit testsEsteban Manchado Velázquez2012-03-08
* | | Clean up and improve gzip unit tests•••* Switch some test_eq parameters so the expected is always the first parameter * Drop some manual checks of compressed format magic numbers (they're pointless and they make the unit tests less readable and more fragile, considering we're already indirectly checking those magic numbers via the detect_compression_method function) * Add a couple of extra assertions Esteban Manchado Velázquez2012-03-08
* | | Add/improve the rest of the strmisc testsEsteban Manchado Velázquez2012-03-08
* | | Improve tor_snprintf testsEsteban Manchado Velázquez2012-03-08
* | | Add/improve tests for str{,case}cmp{start,end}Esteban Manchado Velázquez2012-03-08
* | | Add more/better tests in test_util_strmiscEsteban Manchado Velázquez2012-03-08
* | | Trivial cosmetic fix in test commentsEsteban Manchado Velázquez2012-03-08
* | | Organize test_util_time in blocks•••* Separate the tests for different functions with a comment * Move some test init code further down, closer to where it was actually being used Esteban Manchado Velázquez2012-03-08
* | | Add test for comments in the config parserEsteban Manchado Velázquez2012-03-08
* | | Remove duplicated macro definitionEsteban Manchado Velázquez2012-03-08
* | | Add test for broken hex parsing•••* The test currently fails, but it's commented out (with an "#if 0") * As a broken octal actually gives a parse error, it seems fair that this fails, too Esteban Manchado Velázquez2012-03-08
* | | Improve config parser escaped content testsEsteban Manchado Velázquez2012-03-08
* | | Add tests for escaped content in configEsteban Manchado Velázquez2012-03-08
* | | Add quoted content tests for the config parserEsteban Manchado Velázquez2012-03-08
* | | Fix off-by-one error in test_util_make_environmentPatrick Mézard2012-02-20
* | | Merge branch 'bug5105-v2-squashed'•••Conflicts: src/or/transports.c Nick Mathewson2012-02-17
|\ \ \
| * | | Add unit tests for easily tested, non-trivial utility functionsRobert Ransom2012-02-17
| |/ /
* | | Oops; there were a couple of typos in the upstream tinytestNick Mathewson2012-02-13
* | | Synchronize with upstream tinytest again: remove _identifiersNick Mathewson2012-02-13
* | | Synchronize with upstream tinytest.•••The big change here is a patch (first added to Libevent by Ed Day) to make sure that the CreateProcess forked-test trick works even when the main test program is invoked without its .exe suffix. Nick Mathewson2012-02-13
|/ /
* | Use the standard _WIN32, not the Torism MS_WINDOWS or deprecated WIN32•••This commit is completely mechanical; I used this perl script to make it: #!/usr/bin/perl -w -i.bak -p if (/^\s*\#/) { s/MS_WINDOWS/_WIN32/g; s/\bWIN32\b/_WIN32/g; } Nick Mathewson2012-01-31
* | Rename nonconformant identifiers.•••Fixes bug 4893. These changes are pure mechanical, and were generated with this perl script: /usr/bin/perl -w -i.bak -p s/crypto_pk_env_t/crypto_pk_t/g; s/crypto_dh_env_t/crypto_dh_t/g; s/crypto_cipher_env_t/crypto_cipher_t/g; s/crypto_digest_env_t/crypto_digest_t/g; s/aes_free_cipher/aes_cipher_free/g; s/crypto_free_cipher_env/crypto_cipher_free/g; s/crypto_free_digest_env/crypto_digest_free/g; s/crypto_free_pk_env/crypto_pk_free/g; s/_crypto_dh_env_get_dh/_crypto_dh_get_dh/g; s/_crypto_new_pk_env_rsa/_crypto_new_pk_from_rsa/g; s/_crypto_pk_env_get_evp_pkey/_crypto_pk_get_evp_pkey/g; s/_crypto_pk_env_get_rsa/_crypto_pk_get_rsa/g; s/crypto_new_cipher_env/crypto_cipher_new/g; s/crypto_new_digest_env/crypto_digest_new/g; s/crypto_new_digest256_env/crypto_digest256_new/g; s/crypto_new_pk_env/crypto_pk_new/g; s/crypto_create_crypto_env/crypto_cipher_new/g; s/connection_create_listener/connection_listener_new/g; s/smartlist_create/smartlist_new/g; s/transport_create/transport_new/g; Nick Mathewson2012-01-18
* | Merge branch 'feature3457-v4-nm-squashed'•••Conflicts: src/or/rendclient.c Nick Mathewson2012-01-11
|\ \
| * | Use spaceless ISO8601 time format, not sec,usec.Nick Mathewson2012-01-11
* | | Test for broken counter-mode at runtime•••To solve bug 4779, we want to avoid OpenSSL 1.0.0's counter mode. But Fedora (and maybe others) lie about the actual OpenSSL version, so we can't trust the header to tell us if it's safe. Instead, let's do a run-time test to see whether it's safe, and if not, use our built-in version. fermenthor contributed a pretty essential fixup to this patch. Thanks! Nick Mathewson2012-01-10
* | | Merge branch 'maint-0.2.2'Roger Dingledine2012-01-08
|\ \ \ | | |/ | |/|
| * | tell me who votes are actually for, not just where they're fromRoger Dingledine2012-01-08
* | | Use getifaddrs, not connect+getsockname, to find our address•••This resolves bug1827, and lets us avoid freaking people out. Later, we can use it to get a complete list of our interfaces. Nick Mathewson2011-12-28
* | | Tweak the haiku-support patchesNick Mathewson2011-12-19
* | | -lm should not be hardcoded.•••On some platforms (Haiku/BeOS) libm lives in libcore. Also added 'network' to the list of libraries to search for connect(). Martin Hebnes Pedersen2011-12-19
* | | test_util_spawn_background_ok: fix expectation•••test_util_spawn_background_ok() hardcoded the expected value for ENOENT to 2. This isn't portable as error numbers are platform specific, and particularly the hurd has ENOENT at 0x40000002. Construct expected string at runtime, using the correct value for ENOENT (closes: #4733). Peter Palfrader2011-12-17
* | | Appease check-spacesSebastian Hahn2011-12-02
* | | Add an initializer to appease older gccNick Mathewson2011-11-30
* | | Merge branch 'bug933_nm_rebased_v2'•••Conflicts: src/test/test.c Nick Mathewson2011-11-30
|\ \ \
| * | | No new "LEGACY" tests allowed.Nick Mathewson2011-11-30
| * | | Fix compilation: get_options() now returns constNick Mathewson2011-11-30
| * | | Address nickm's comments at https://trac.torproject.org/projects/tor/ticket/9...••• 1. Only allow '*.' in MapAddress expressions. Ignore '*ample.com' and '.example.com'. This has resulted in a slight refactoring of config_register_addressmaps. 2. Add some more detail to the man page entry for AddressMap. 3. Fix initialization of a pointer to NULL rather than 0. 4. Update the unit tests to cater for the changes in 1 and test more explicitly for recursive mapping. Robert Hogan2011-11-30
| * | | Address nickm's comments at https://trac.torproject.org/projects/tor/ticket/9...•••1. Implement the following mapping rules: MapAddress a.b.c d.e.f # This is what we have now MapAddress .a.b.c d.e.f # Replaces any address ending with .a.b.c with d.e.f MapAddress .a.b.c .d.e.f # Replaces the .a.b.c at the end of any addr with .d.e.f (Note that 'a.b.c .d.e.f' is invalid, and will be rejected.) 2. Add tests for the new rules. 3. Allow proper wildcard annotation, i.e. '*.d.e' '.d.e' will still work. 4. Update addressmap_entry_t with an is_wildcard member. Robert Hogan2011-11-30
| * | | bug933 - Match against super-domains in MapAddress•••Allow MapAddress to handle directives such as: MapAddress .torproject.org .torserver.exit MapAddress .org 1.1.1.1 Add tests for addressmap_rewrite. Robert Hogan2011-11-30
* | | | Resolve a resource leak in test_util_split_lines•••Fixes coverity CID # 488 Nick Mathewson2011-11-30
* | | | Initial support for simplest use of prop186 or-address lines•••This lets a routerinfo_t have a single IPv6 or-address, and adds support for formatting and parsing those lines. Nick Mathewson2011-11-30