-
Notifications
You must be signed in to change notification settings - Fork 4
/
tests.c
36 lines (32 loc) · 908 Bytes
/
tests.c
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
34
35
36
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "CuTest.h"
void add_suite_format(CuSuite *suite);
void add_suite_selist(CuSuite *suite);
void add_suite_strings(CuSuite *suite);
void add_suite_strutil(CuSuite *suite);
void add_suite_critbit(CuSuite *suite);
void add_suite_l10n(CuSuite *suite);
void add_suite_cmdline(CuSuite *suite);
int main(void)
{
CuString *output = CuStringNew();
CuSuite *suite = CuSuiteNew();
int result;
add_suite_format(suite);
add_suite_l10n(suite);
add_suite_strings(suite);
add_suite_strutil(suite);
add_suite_critbit(suite);
add_suite_selist(suite);
add_suite_cmdline(suite);
CuSuiteRun(suite);
CuSuiteSummary(suite, output);
CuSuiteDetails(suite, output);
printf("%s\n", output->buffer);
result = suite->failCount;
CuStringDelete(output);
CuSuiteDelete(suite);
return result;
}