Introduce TKM specific charon daemon (charon-tkm)
[strongswan.git] / src / charon-tkm / tests / test_runner.c
1 /*
2 * Copyright (C) 2012 Reto Buerki
3 * Copyright (C) 2012 Adrian-Ken Rueegsegger
4 * Hochschule fuer Technik Rapperswil
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 */
16
17 #include <stdlib.h>
18
19 #include "test_runner.h"
20
21 int main(void)
22 {
23 int number_failed;
24 Suite *s = suite_create("TKM tests");
25 suite_add_tcase(s, make_id_manager_tests());
26 suite_add_tcase(s, make_nonceg_tests());
27
28 SRunner *sr = srunner_create(s);
29
30 srunner_run_all(sr, CK_NORMAL);
31 number_failed = srunner_ntests_failed(sr);
32
33 srunner_free(sr);
34
35 return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
36 }