Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | unit-tests: Add option to exclude specific test suites | Tobias Brunner | 2014-09-09 | 1 | -14/+31 |
| | | | | | Listing test suites in TESTS_SUITES_EXCLUDE allows excluding specific test suites from running. | ||||
* | unit-tests: Make fixture functions optional | Tobias Brunner | 2014-06-19 | 1 | -2/+8 |
| | |||||
* | unit-tests: Support testable functions on Windows, avoid weak GCC symbols | Martin Willi | 2014-06-04 | 1 | -28/+5 |
| | | | | | | | Instead of using weak symbols, we use dlsym() on Windows to find an arbitrary symbol in libtest to detect its linkage. Instead of creating the associated hashtable in the test runner, we maintain it in libstrongswan, making it significantly simpler. | ||||
* | unit-tests: Seed chunk_hash() only once, but before creating any hashtables | Martin Willi | 2014-06-04 | 1 | -0/+3 |
| | | | | | | | Due to the removal of pthread_once, we manually create the seed for chunk_hash(). With the new testable functions interface, this won't work for the hashtable initiated using __attribute__((constructor)). Enforce seeding before creating that hashtable. | ||||
* | library: Change init/deinit order to allow utils to depend on threading | Martin Willi | 2014-06-04 | 1 | -0/+3 |
| | |||||
* | unit-tests: Allow configuration of libstrongswan via config | Thomas Egerer | 2014-04-30 | 1 | -10/+14 |
| | | | | | | | | By setting the environment variable TESTS_STRONGSWAN_CONF, the unit tests can be asked to load a configuration file, thus enabling the tester to make use of the usual configuration settings. Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com> | ||||
* | unit-tests: Catch timeouts during test runner deinit function | Martin Willi | 2014-04-01 | 1 | -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: Add an option to increase the verbosity when running tests | Tobias Brunner | 2014-03-20 | 1 | -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 suites | Tobias Brunner | 2014-03-20 | 1 | -8/+54 |
| | | | | | The TESTS_SUITES environment variable can contain a comma separated list of names of test suites to run. | ||||
* | unit-tests: Change how hashtable for testable functions is created | Tobias Brunner | 2014-03-20 | 1 | -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 Brunner | 2014-03-20 | 1 | -0/+3 |
| | |||||
* | lib: Add global config namespace | Tobias Brunner | 2014-02-12 | 1 | -2/+2 |
| | |||||
* | unit-tests: Pass a test suite collection name to print during test execution | Martin Willi | 2014-01-22 | 1 | -6/+7 |
| | | | | | 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. | ||||
* | unit-tests: Add facility to register testable functions | Tobias Brunner | 2013-12-04 | 1 | -0/+25 |
| | | | | | These can be defined in plugins, or other parts of the tested libraries. They can even be static. | ||||
* | unit-tests: Initialize tests with a callback | Tobias Brunner | 2013-11-06 | 1 | -44/+22 |
| | |||||
* | unit-tests: Separate test runner to a library, reusable by other tests | Martin Willi | 2013-11-06 | 1 | -38/+30 |
| | | | | | | Other users may make use of the noinst libtest.la helper library to implement unit tests. For libstrongswan, tests.[ch] provide the configuration for test runner to perform unit tests in a simple manner. | ||||
* | unit-tests: Use some include magic to define test suite constructors | Martin Willi | 2013-11-06 | 1 | -45/+34 |
| | | | | | Avoid editing of several files when creating test suites by using a single header file to define test suite constructor functions. | ||||
* | unit-tests: Add test suite for streams and services | Martin Willi | 2013-11-06 | 1 | -0/+1 |
| | |||||
* | unit-tests: Add a few test cases for watcher | Martin Willi | 2013-11-06 | 1 | -0/+1 |
| | |||||
* | unit-tests: Support testing multi-threaded code | Martin Willi | 2013-11-06 | 1 | -2/+7 |
| | |||||
* | unit-tests: Initialize backtracing before printing any backtraces | Martin Willi | 2013-11-06 | 1 | -0/+4 |
| | |||||
* | unit-tests: Implement testing framework without "check" | Martin Willi | 2013-11-06 | 1 | -46/+432 |
| | |||||
* | unit-tests: 12 asn1 functions tested | Andreas Steffen | 2013-11-02 | 1 | -0/+1 |
| | |||||
* | unit-tests: Added tests for pen_type_t | Andreas Steffen | 2013-11-01 | 1 | -0/+1 |
| | |||||
* | printf-hook: Add some basic printf() string/integer test functions | Martin Willi | 2013-10-11 | 1 | -0/+1 |
| | |||||
* | unit-tests: Add test for host_create_netmask() | Tobias Brunner | 2013-07-24 | 1 | -0/+1 |
| | |||||
* | unit-tests: implement tests for array collection | Martin Willi | 2013-07-17 | 1 | -0/+1 |
| | |||||
* | plugin-loader: Removed unused path argument of load() method | Tobias Brunner | 2013-06-28 | 1 | -1/+1 |
| | | | | | Multiple additional search paths can be added with the add_path() method. | ||||
* | unit-tests: Print loaded plugins | Tobias Brunner | 2013-06-27 | 1 | -0/+1 |
| | |||||
* | tests: Properly load plugins from build directory | Tobias Brunner | 2013-06-27 | 1 | -7/+2 |
| | | | | | | Calling load() incrementally does not really work as dependencies wouldn't be resolved properly if a required feature was to be provided by a plugin that is loaded later with a separate call to load(). | ||||
* | unit-tests: load plugins in test-runner from build directory | Martin Willi | 2013-06-21 | 1 | -1/+29 |
| | |||||
* | unit-tests: add RSA test cases, very similar to ECDSA | Martin Willi | 2013-06-21 | 1 | -0/+5 |
| | |||||
* | unit-tests: test with /dev/urandom if random plugin is in use | Martin Willi | 2013-06-21 | 1 | -0/+6 |
| | |||||
* | Move test-runners has_feature() function to plugin loader | Martin Willi | 2013-06-21 | 1 | -32/+2 |
| | |||||
* | unit-tests: perform a first ECDSA test case if ECDSA is supported | Martin Willi | 2013-06-21 | 1 | -0/+4 |
| | |||||
* | unit-tests: add a helper function checking if a plugin feature is available | Martin Willi | 2013-06-21 | 1 | -0/+32 |
| | |||||
* | unit-tests: add a test case checking if all test vectors have been passed | Martin Willi | 2013-06-21 | 1 | -0/+1 |
| | |||||
* | unit-tests: load all libstrongswan plugins in test-runner | Martin Willi | 2013-06-21 | 1 | -0/+6 |
| | |||||
* | Enable leak detective for all test cases | Tobias Brunner | 2013-06-11 | 1 | -1/+1 |
| | |||||
* | Added tests for bio_writer_t | Tobias Brunner | 2013-06-11 | 1 | -0/+1 |
| | |||||
* | Added tests for bio_reader_t | Tobias Brunner | 2013-06-11 | 1 | -1/+3 |
| | |||||
* | Added tests for utils/enum.c | Tobias Brunner | 2013-06-11 | 1 | -0/+1 |
| | |||||
* | Add tests for lib->get|set | Tobias Brunner | 2013-06-11 | 1 | -0/+1 |
| | |||||
* | Converted test for recursive mutex_t | Tobias Brunner | 2013-06-11 | 1 | -0/+1 |
| | |||||
* | Converted tests for chunk_t | Tobias Brunner | 2013-06-11 | 1 | -0/+1 |
| | |||||
* | Converted and added tests for hashtable_t | Tobias Brunner | 2013-06-11 | 1 | -0/+1 |
| | |||||
* | Converted tests for identification_t | Tobias Brunner | 2013-06-11 | 1 | -0/+1 |
| | |||||
* | Add tests combining linked_list_t and enumerators | Tobias Brunner | 2013-06-11 | 1 | -0/+1 |
| | |||||
* | Add basic tests for linked_list_t | Tobias Brunner | 2013-06-11 | 1 | -0/+1 |
| | |||||
* | Redirect test runner output to stderr | Tobias Brunner | 2013-06-11 | 1 | -0/+4 |
| | | | | This allows redirecting stdout of 'make check' to /dev/null. |