aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/tests/test_runner.c
Commit message (Collapse)AuthorAgeFilesLines
* unit-tests: Add option to exclude specific test suitesTobias Brunner2014-09-091-14/+31
| | | | | Listing test suites in TESTS_SUITES_EXCLUDE allows excluding specific test suites from running.
* unit-tests: Make fixture functions optionalTobias Brunner2014-06-191-2/+8
|
* unit-tests: Support testable functions on Windows, avoid weak GCC symbolsMartin Willi2014-06-041-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 hashtablesMartin Willi2014-06-041-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 threadingMartin Willi2014-06-041-0/+3
|
* unit-tests: Allow configuration of libstrongswan via configThomas Egerer2014-04-301-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 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: 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: 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
|
* lib: Add global config namespaceTobias Brunner2014-02-121-2/+2
|
* unit-tests: Pass a test suite collection name to print during test executionMartin Willi2014-01-221-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 functionsTobias Brunner2013-12-041-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 callbackTobias Brunner2013-11-061-44/+22
|
* unit-tests: Separate test runner to a library, reusable by other testsMartin Willi2013-11-061-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 constructorsMartin Willi2013-11-061-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 servicesMartin Willi2013-11-061-0/+1
|
* unit-tests: Add a few test cases for watcherMartin Willi2013-11-061-0/+1
|
* unit-tests: Support testing multi-threaded codeMartin Willi2013-11-061-2/+7
|
* unit-tests: Initialize backtracing before printing any backtracesMartin Willi2013-11-061-0/+4
|
* unit-tests: Implement testing framework without "check"Martin Willi2013-11-061-46/+432
|
* unit-tests: 12 asn1 functions testedAndreas Steffen2013-11-021-0/+1
|
* unit-tests: Added tests for pen_type_tAndreas Steffen2013-11-011-0/+1
|
* printf-hook: Add some basic printf() string/integer test functionsMartin Willi2013-10-111-0/+1
|
* unit-tests: Add test for host_create_netmask()Tobias Brunner2013-07-241-0/+1
|
* unit-tests: implement tests for array collectionMartin Willi2013-07-171-0/+1
|
* plugin-loader: Removed unused path argument of load() methodTobias Brunner2013-06-281-1/+1
| | | | | Multiple additional search paths can be added with the add_path() method.
* unit-tests: Print loaded pluginsTobias Brunner2013-06-271-0/+1
|
* tests: Properly load plugins from build directoryTobias Brunner2013-06-271-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 directoryMartin Willi2013-06-211-1/+29
|
* unit-tests: add RSA test cases, very similar to ECDSAMartin Willi2013-06-211-0/+5
|
* unit-tests: test with /dev/urandom if random plugin is in useMartin Willi2013-06-211-0/+6
|
* Move test-runners has_feature() function to plugin loaderMartin Willi2013-06-211-32/+2
|
* unit-tests: perform a first ECDSA test case if ECDSA is supportedMartin Willi2013-06-211-0/+4
|
* unit-tests: add a helper function checking if a plugin feature is availableMartin Willi2013-06-211-0/+32
|
* unit-tests: add a test case checking if all test vectors have been passedMartin Willi2013-06-211-0/+1
|
* unit-tests: load all libstrongswan plugins in test-runnerMartin Willi2013-06-211-0/+6
|
* Enable leak detective for all test casesTobias Brunner2013-06-111-1/+1
|
* Added tests for bio_writer_tTobias Brunner2013-06-111-0/+1
|
* Added tests for bio_reader_tTobias Brunner2013-06-111-1/+3
|
* Added tests for utils/enum.cTobias Brunner2013-06-111-0/+1
|
* Add tests for lib->get|setTobias Brunner2013-06-111-0/+1
|
* Converted test for recursive mutex_tTobias Brunner2013-06-111-0/+1
|
* Converted tests for chunk_tTobias Brunner2013-06-111-0/+1
|
* Converted and added tests for hashtable_tTobias Brunner2013-06-111-0/+1
|
* Converted tests for identification_tTobias Brunner2013-06-111-0/+1
|
* Add tests combining linked_list_t and enumeratorsTobias Brunner2013-06-111-0/+1
|
* Add basic tests for linked_list_tTobias Brunner2013-06-111-0/+1
|
* Redirect test runner output to stderrTobias Brunner2013-06-111-0/+4
| | | | This allows redirecting stdout of 'make check' to /dev/null.