• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3  * Copyright (c) 2013 Thomas Graf <tgraf@suug.ch>
4  */
5 
6 #include <check.h>
7 
8 #include "cksuite-all.h"
9 
main_suite(void)10 static Suite *main_suite(void)
11 {
12 	Suite *suite = suite_create("main");
13 
14 	return suite;
15 }
16 
main(int argc,char * argv[])17 int main(int argc, char *argv[])
18 {
19 	SRunner *runner;
20 	int nfailed;
21 
22 	runner = srunner_create(main_suite());
23 
24 	srunner_add_suite(runner, make_nl_addr_suite());
25 	srunner_add_suite(runner, make_nl_attr_suite());
26 	srunner_add_suite(runner, make_nl_ematch_tree_clone_suite());
27 	srunner_add_suite(runner, make_nl_netns_suite());
28 
29 	srunner_run_all(runner, CK_ENV);
30 
31 	nfailed = srunner_ntests_failed(runner);
32 	srunner_free(runner);
33 
34 	return nfailed != 0;
35 }
36