#include #include #include #include #include #include #include extern void public_tests (Suite *s); extern void private_tests (Suite *s); Suite * test_suite (void) { Suite *s = suite_create ("Default"); public_tests (s); private_tests (s); return s; } void run_testsuite (void) { Suite *s = test_suite (); SRunner *sr = srunner_create (s); srunner_run_all (sr, CK_NORMAL); srunner_free (sr); } int main (void) { srand((unsigned)time(NULL)); run_testsuite (); return EXIT_SUCCESS; }