aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge branch 'unit-tests'Martin Willi2013-11-0640-355/+3383
|\ | | | | | | | | | | | | | | | | | | | | | | | | Replace the "check" based libstrongswan unit test framework with our own, giving us more flexibility for our specific needs. The new framework is more portable and uses complete libstrongswan init/deinit cycles for each test to properly catch leaks. It fully supports multi-threaded tests, and brings many of them for all threading primitives, watcher and streams. The --enable-unit-tests option is not required anymore for libstrongswan tests, but still is for the still "check" based charon-tkm tests.
| * unit-tests: Initialize tests with a callbackTobias Brunner2013-11-063-56/+58
| |
| * plugin-loader: Convenience function added to add plugin dirs in build treeTobias Brunner2013-11-062-0/+28
| |
| * unit-tests: Separate test runner to a library, reusable by other testsMartin Willi2013-11-065-68/+168
| | | | | | | | | | | | 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-062-73/+55
| | | | | | | | | | Avoid editing of several files when creating test suites by using a single header file to define test suite constructor functions.
| * unit-tests: Check printing of strings having zero lengthMartin Willi2013-11-061-0/+2
| |
| * unit-tests: Add some basic tests if PRI* printf specifiers work as expectedMartin Willi2013-11-061-0/+25
| |
| * unit-tests: Add a semaphore wait cancel testMartin Willi2013-11-061-0/+44
| |
| * unit-tests: Add a semaphore absolute timed wait testMartin Willi2013-11-061-0/+27
| |
| * unit-tests: Add a semaphore timed wait test caseMartin Willi2013-11-061-0/+24
| |
| * unit-tests: Add a simple semaphore testMartin Willi2013-11-061-0/+40
| |
| * unit-tests: Add a spinlock test caseMartin Willi2013-11-061-0/+49
| |
| * unit-tests: Add a rwlock condvar thread cancel testMartin Willi2013-11-061-0/+57
| |
| * unit-tests: Add a rwlock condvar absolute timed wait testMartin Willi2013-11-061-0/+43
| |
| * unit-tests: Add a rwlock condvar wait testMartin Willi2013-11-061-0/+40
| |
| * unit-tests: Add a rwlock condvar broadcast testMartin Willi2013-11-061-0/+43
| |
| * unit-tests: Add a rwlock condvar testMartin Willi2013-11-061-0/+50
| |
| * unit-tests: Add a rwlock test caseMartin Willi2013-11-061-0/+62
| |
| * unit-tests: Add a condvar test where wait gets cancelledMartin Willi2013-11-061-0/+57
| |
| * unit-tests: Add a condvar test working on a recursive mutexMartin Willi2013-11-061-0/+50
| |
| * unit-tests: Add a condvar absolute timed wait testMartin Willi2013-11-061-0/+43
| |
| * unit-tests: Add a condvar timed wait testMartin Willi2013-11-061-0/+40
| |
| * unit-tests: Add condvar broadcast testMartin Willi2013-11-061-0/+43
| |
| * unit-tests: Add a simple condvar testMartin Willi2013-11-061-4/+61
| |
| * unit-tests: Add a thread local storage cleanup testMartin Willi2013-11-061-0/+50
| |
| * unit-tests: Add a thread local storage fuzzer testMartin Willi2013-11-061-0/+64
| |
| * unit-tests: Add a thread cleanup pop testMartin Willi2013-11-061-0/+33
| |
| * unit-tests: Add cleanup test cases for different thread exit situationsMartin Willi2013-11-061-0/+126
| |
| * unit-tests: Add a test for thread_cancellation_point()Martin Willi2013-11-061-0/+33
| |
| * unit-tests: Add thread cancellability testingMartin Willi2013-11-061-0/+50
| |
| * unit-tests: Add a simple thread_cancel() testMartin Willi2013-11-061-0/+35
| |
| * unit-tests: Add thread_exit() tests to both join and detach test casesMartin Willi2013-11-061-0/+62
| |
| * unit-tests: Add a simple thread detach testMartin Willi2013-11-061-0/+36
| |
| * unit-tests: Add a simple thread join() testMartin Willi2013-11-061-0/+27
| |
| * unit-tests: Add test suite for streams and servicesMartin Willi2013-11-064-0/+270
| |
| * unit-tests: Add a few test cases for watcherMartin Willi2013-11-064-0/+217
| |
| * unit-tests: Support testing multi-threaded codeMartin Willi2013-11-062-7/+49
| |
| * unit-tests: Use a home-brew thread barrier to remove pthread dependencyMartin Willi2013-11-061-15/+86
| |
| * unit-tests: Show how many test vectors have failed on test failureMartin Willi2013-11-061-1/+2
| |
| * unit-tests: Skip fmemopen() based printf() tests if not availableMartin Willi2013-11-061-7/+12
| |
| * unit-tests: Avoid name clash with clone() from <sched.h>Martin Willi2013-11-061-6/+6
| |
| * unit-tests: Fix a compiler warning in identification testsMartin Willi2013-11-061-1/+1
| |
| * unit-tests: Clean up memory in new asn1 unit testsMartin Willi2013-11-061-1/+3
| | | | | | | | Test runner checks for leaks when leak detective is enabled.
| * unit-tests: Pass linked_list->invoke* varargs as uintptr_tMartin Willi2013-11-061-6/+10
| | | | | | | | | | | | Passing integers of unspecified length may result in passing an integer shorter than uintptr_t. When reading them back, we might get more data than passed, resulting in a failure.
| * unit-tests: Initialize backtracing before printing any backtracesMartin Willi2013-11-061-0/+4
| |
| * thread: Note that tread_cancellation_point temporarily activates cancelabilityMartin Willi2013-11-061-5/+4
| |
| * backtrace: Support backtracing even if library is not initializedMartin Willi2013-11-061-2/+2
| | | | | | | | But of course backtracing must be initialized anyway using backtrace_init().
| * unit-tests: Enable libstrongswan tests even if --enable-unit-tests not setMartin Willi2013-11-061-3/+1
| | | | | | | | | | | | As we don't depend on the check framework anymore, we can enable the unit tests by default. These are built/executed with "make check" only, so it makes no sense to disable them.
| * automake: Don't use parallel test harness being the default with automake 1.13Martin Willi2013-11-061-1/+11
| | | | | | | | | | We have no need for the parallel test harness, and we prefer to have the output of make check on the console
| * unit-tests: Implement testing framework without "check"Martin Willi2013-11-065-113/+956
| |