blob: 8dbe07e28a29c3a0e12b87e7a1a1bb4d88e6e7a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* tests/main.c
* (c) 2021 Jonas Gunz <himself@jonasgunz.de>
* License: MIT
*/
/* https://libcheck.github.io/check/doc/doxygen/html/check_8h.html */
#include <check.h>
#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());
sr = srunner_create(s);
srunner_run_all(sr,CK_VERBOSE);
failed = srunner_ntests_failed(sr);
srunner_free(sr);
return failed;
}
|