charon-tkm: Migrate tests to our own test runner

Due to problems with the external libraries tkm_init/deinit can't be
called for each test case.  Because of this leak detective has to be
disabled for these tests.
This commit is contained in:
Tobias Brunner
2013-11-27 18:35:44 +01:00
parent 70f4461359
commit d6032bff8b
12 changed files with 236 additions and 138 deletions
+15 -6
View File
@@ -14,7 +14,7 @@
* for more details.
*/
#include <check.h>
#include <tests/test_suite.h>
#include "tkm_chunk_map.h"
@@ -48,11 +48,20 @@ START_TEST(test_chunk_map_handling)
}
END_TEST
TCase *make_chunk_map_tests(void)
Suite *make_chunk_map_tests()
{
TCase *tc = tcase_create("Chunk map tests");
tcase_add_test(tc, test_chunk_map_creation);
tcase_add_test(tc, test_chunk_map_handling);
Suite *s;
TCase *tc;
return tc;
s = suite_create("chunk map");
tc = tcase_create("creating");
tcase_add_test(tc, test_chunk_map_creation);
suite_add_tcase(s, tc);
tc = tcase_create("handling");
tcase_add_test(tc, test_chunk_map_handling);
suite_add_tcase(s, tc);
return s;
}