aboutsummaryrefslogtreecommitdiff
path: root/tests/main.c
blob: 4b1cfd279fe7cce6a9d6b8bae70764089dde7503 (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
/*
 * tests/main.c
 * (c) 2021 Jonas Gunz <himself@jonasgunz.de>
 * License: MIT
 */

#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());

	sr = srunner_create(s);
	srunner_run_all(sr,CK_NORMAL);

	failed = srunner_ntests_failed(sr);

	srunner_free(sr);

	return failed;
}