aboutsummaryrefslogtreecommitdiff
path: root/tests/main.c
blob: 65d527f72aed6ea4a106ffbfd961c75097ac7bde (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
33
#include <check.h>

START_TEST (test_example) {
	ck_abort();
} END_TEST

Suite* tests(void) {
	Suite *s;
	TCase *tc_core;

	s = suite_create("DNS Tests");

	tc_core = tcase_create("Core");

	tcase_add_test(tc_core, test_example);
	suite_add_tcase(s, tc_core);

	return s;
}

int main() {
	Suite *s;
	SRunner *sr;

	s = tests();
	sr = srunner_create(s);

	srunner_run_all(sr,CK_NORMAL);

	srunner_free(sr);

	return srunner_ntests_failed(sr);
}