7983
|
1 |
#include <check.h>
|
|
2 |
#include <stdlib.h>
|
|
3 |
#include "check_check.h"
|
|
4 |
|
|
5 |
int main(void)
|
|
6 |
{
|
|
7 |
int number_failed;
|
|
8 |
|
|
9 |
Suite *s1 = system_suite();
|
|
10 |
Suite *s2 = misc_suite();
|
|
11 |
Suite *s3 = sysutils_suite();
|
|
12 |
Suite *s4 = fileio_suite();
|
|
13 |
|
|
14 |
SRunner *sr = srunner_create(s1);
|
|
15 |
srunner_add_suite(sr, s2);
|
|
16 |
srunner_add_suite(sr, s3);
|
|
17 |
srunner_add_suite(sr, s4);
|
|
18 |
|
|
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;
|
|
23 |
}
|