/* * tests/main.c * (c) 2021 Jonas Gunz * License: MIT */ /* https://libcheck.github.io/check/doc/doxygen/html/check_8h.html */ #include #include "tests.h" int main() { Suite *s; SRunner *sr; int failed; s = suite_create("All Tests"); suite_add_tcase(s, test_dns()); suite_add_tcase(s, test_tree()); suite_add_tcase(s, test_zonefile()); suite_add_tcase(s, test_record()); suite_add_tcase(s, test_database()); suite_add_tcase(s, test_list()); sr = srunner_create(s); srunner_run_all(sr,CK_VERBOSE); failed = srunner_ntests_failed(sr); srunner_free(sr); return failed; }