X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=blobdiff_plain;f=Source%2Fcharon%2Fdaemon.c;h=aaba8518bcefa0140c8eb7155b9d638e9306b3a2;hp=24e0621344440b33faf7b3af036de5402cad255d;hb=fc8885965c13430af6e7ae32cf85da768312efab;hpb=f66af6b7a89bcfa39e3b05afe59f82d8683de222 diff --git a/Source/charon/daemon.c b/Source/charon/daemon.c index 24e0621..aaba851 100644 --- a/Source/charon/daemon.c +++ b/Source/charon/daemon.c @@ -20,13 +20,27 @@ * for more details. */ +#include - - +#include "types.h" +#include "tester.h" + +/* output for test messages */ +extern FILE * stderr; int main() { + FILE * test_output = stderr; + + tester_t *tester = tester_create(test_output); + + tester->test_all(tester); - return 0; + if (tester->destroy(tester) == SUCCESS) + { + return -1; + } + + return 0; }