aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/test.c
Commit message (Collapse)AuthorAgeFilesLines
* unit-tests: Support testable functions on Windows, avoid weak GCC symbolsMartin Willi2014-06-041-23/+48
| | | | | | | 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: Change how hashtable for testable functions is createdTobias Brunner2014-03-201-18/+35
| | | | | | | | 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: Add facility to register testable functionsTobias Brunner2013-12-041-0/+50
These can be defined in plugins, or other parts of the tested libraries. They can even be static.