7983
|
1 |
#include <check.h>
|
|
2 |
#include <stdlib.h>
|
|
3 |
#include "check_check.h"
|
|
4 |
|
|
5 |
int main(void)
|
|
6 |
{
|
10015
|
7 |
int number_failed;
|
7983
|
8 |
|
10015
|
9 |
Suite *s1 = system_suite();
|
|
10 |
Suite *s2 = misc_suite();
|
|
11 |
Suite *s3 = sysutils_suite();
|
|
12 |
Suite *s4 = fileio_suite();
|
7983
|
13 |
|
10015
|
14 |
SRunner *sr = srunner_create(s1);
|
|
15 |
srunner_add_suite(sr, s2);
|
|
16 |
srunner_add_suite(sr, s3);
|
|
17 |
srunner_add_suite(sr, s4);
|
7983
|
18 |
|
10015
|
19 |
srunner_run_all(sr, CK_NORMAL);
|
|
20 |
number_failed = srunner_ntests_failed(sr);
|
|
21 |
srunner_free(sr);
|
|
22 |
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
|
7983
|
23 |
}
|