aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* unit-tests: Silence a literal signedness warning raised by GCC 4.6.3Martin Willi2014-04-301-2/+2
|
* unit-tests: Verify two bytes at once when testing chunk_clear()Tobias Brunner2014-04-021-3/+6
| | | | | This reduces the chances of arbitrary test failures if the memory area already got overwritten.
* unit-tests: Catch timeouts during test runner deinit functionMartin Willi2014-04-011-6/+18
| | | | | | The test runner deinit function often cancels all threads from the pool. This operation might hang on error conditions, hence we should include that hook in the test timeout to fail properly.
* unit-tests: Prevent a failing worker thread to go wild after it failsMartin Willi2014-04-011-1/+2
| | | | | | A worker raises SIGUSR1 to inform the main thread that the test fails. The main thread then starts cancelling workers, but the offending thread should be terminated immediately to prevent it from test continuation.
* unit-tests: Fix filtered enumerator tests on 64-bit big-endian platformsTobias Brunner2014-03-271-12/+12
| | | | | In case of sizeof(void*) == 8 and sizeof(int) == 4 on big-endian hosts the tests failed as the actual integer value got cut off.
* unit-tests: Fix memory leak in ntru testsTobias Brunner2014-03-271-3/+5
|
* unit-test: added missing TEST_FUNCTION macrosAndreas Steffen2014-03-221-8/+16
|
* Completed integration of ntru_crypto library into ntru pluginAndreas Steffen2014-03-221-4/+62
|
* unit-tests: Add an option to increase the verbosity when running testsTobias Brunner2014-03-201-1/+9
| | | | | The TESTS_VERBOSITY option takes an integer from -1 to 4 that sets the default debug level.
* unit-tests: Add an option to run only a subset of all test suitesTobias Brunner2014-03-201-8/+54
| | | | | The TESTS_SUITES environment variable can contain a comma separated list of names of test suites to run.
* unit-tests: Actually verify registered algorithms against test vectorsTobias Brunner2014-03-201-4/+9
| | | | | | | | Previously, the {ns}.crypto_test.on_add option had to be enabled to actually test the algorithms, which we can't enforce for the tests in the test_runner as the option is already read when the crypto factory is initialized. Even so, we wouldn't want to do this for every unit test, which would be the result of enabling that option.
* unit-tests: Use TEST_FUNCTION macro in ntru testsTobias Brunner2014-03-201-34/+44
|
* unit-tests: Call functions with TEST_ prefix in ntru testTobias Brunner2014-03-201-36/+38
|
* unit-tests: Change how hashtable for testable functions is createdTobias Brunner2014-03-201-9/+13
| | | | | | | | Because GCC does not adhere to the priorities defined for constructors when building with --enable-monolithic (not sure if it was just luck that it worked in non-monolithic mode - anyway, it's not very portable) function registration would fail because the hashtable would not be created yet.
* unit-tests: Generate weak keys with gcrypt plugin (but quickly)Tobias Brunner2014-03-201-0/+3
|
* Implemented ntru_private_key classAndreas Steffen2014-03-181-40/+344
|
* Added get_array() method to ntru_poly_t classAndreas Steffen2014-02-271-1/+33
|
* Defined ntru_poly_create_from_seed() and ntru_poly_create_from_data() ↵Andreas Steffen2014-02-271-7/+120
| | | | constructors and built some unit tests for the latter)
* Implement ring multiplication methodAndreas Steffen2014-02-271-14/+17
|
* utils: Add memrchr(3) replacement for platforms that don't support itTobias Brunner2014-02-261-0/+44
| | | | For instance, on Mac OS X memrchr(3) is not provided by the C library.
* utils: Add thread-safe variants of dirname(3) and basename(3)Tobias Brunner2014-02-241-0/+56
|
* index limit can be easily computedAndreas Steffen2014-02-191-12/+10
|
* Created ntru_poly class for sparse trinary polynomialsAndreas Steffen2014-02-181-6/+120
|
* Fixed some typosTobias Brunner2014-02-181-2/+2
|
* unit-tests: Ignore tests not test_runnerTobias Brunner2014-02-181-1/+1
|
* settings: Add support to enumerate sections and key/value pairs with fallbacksTobias Brunner2014-02-121-10/+24
|
* array: Add array_bsearch functionTobias Brunner2014-02-121-0/+66
|
* array: Add array_sort functionTobias Brunner2014-02-121-0/+90
|
* unit-tests: Test how settings_t handles some invalid dataTobias Brunner2014-02-121-0/+72
|
* settings: Add method that allows to define fallback sections for other sectionsTobias Brunner2014-02-121-0/+109
| | | | | The fallbacks are currently only used for single value lookups. Enumerators are not affected by them.
* unit-tests: Add tests for includes and file loading in settings_tTobias Brunner2014-02-121-0/+149
|
* settings: Allow empty strings in section keyTobias Brunner2014-02-121-0/+2
|
* unit-tests: Add tests for enumerators in settings_tTobias Brunner2014-02-121-0/+148
|
* unit-tests: Add tests for setters in settings_tTobias Brunner2014-02-121-0/+109
|
* unit-tests: Add basic tests for settings_tTobias Brunner2014-02-123-0/+319
|
* lib: Add global config namespaceTobias Brunner2014-02-121-2/+2
|
* asn1: Support dates before 1970-01-01 (i.e. when time_t gets negative)Tobias Brunner2014-02-121-0/+6
| | | | | | On x86 we allow "overflows" around 1969/1970 but not for other dates. Fixes #509.
* asn1: Add additional validation for parsed ASN.1 date/time valuesTobias Brunner2014-02-121-0/+8
|
* tests: Fix test for printing NULL on FreeBSDTobias Brunner2014-02-121-2/+13
|
* unit-tests: added asn1_parser testsAndreas Steffen2014-02-103-0/+293
|
* unit-tests: added some more ASN.1 length testsAndreas Steffen2014-02-101-0/+13
|
* unit-tests: Add some test cases for HTTP GET/POST fetchesMartin Willi2014-01-313-1/+275
|
* unit-tests: Fix test_runner_run() apidocMartin Willi2014-01-291-1/+1
|
* chunk: Externalize error reporting in chunk_write()Martin Willi2014-01-231-2/+2
| | | | | This avoids passing that arbitrary label just for error messages, and gives greater flexibility in handling errors.
* chunk: Use dynamically allocated buffer in chunk_from_fd()Martin Willi2014-01-231-0/+84
| | | | | | | | When acting on files, we can use fstat() to estimate the buffer size. On non-file FDs, we dynamically increase an allocated buffer. Additionally we slightly change the function signature to properly handle zero-length files and add appropriate unit tests.
* chunk: Add functions to map file contents to a chunkMartin Willi2014-01-231-1/+43
|
* utils: Add strreplace functionTobias Brunner2014-01-231-0/+87
|
* unit-tests: Pass a test suite collection name to print during test executionMartin Willi2014-01-223-8/+11
| | | | | As we except to get more and more test runners for the different components, we add a name to easily identify them on the test output.
* array: Add an array_get() functionMartin Willi2014-01-221-2/+18
|
* unit-tests: Add environment variable to reduce the number of generated keysTobias Brunner2014-01-202-2/+14
| | | | | | | If TESTS_REDUCED_KEYLENGTHS is set RSA and ECDSA keys are only generated for the lowest configured key length. Fixes #474.