5c795f8d6dd3102e32bf6fbfd6d69ed6037658bf
2 * Copyright (C) 2012 Reto Buerki
3 * Copyright (C) 2012 Adrian-Ken Rueegsegger
4 * Hochschule fuer Technik Rapperswil
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>.
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
18 #include "test_runner.h"
24 fprintf(stderr
, "Could not connect to TKM, aborting tests\n");
29 Suite
*s
= suite_create("TKM tests");
30 suite_add_tcase(s
, make_id_manager_tests());
31 suite_add_tcase(s
, make_nonceg_tests());
32 suite_add_tcase(s
, make_diffie_hellman_tests());
34 SRunner
*sr
= srunner_create(s
);
36 srunner_run_all(sr
, CK_NORMAL
);
37 number_failed
= srunner_ntests_failed(sr
);
42 return (number_failed
== 0) ? EXIT_SUCCESS
: EXIT_FAILURE
;