1 #ifndef CMARK_API_TEST_HARNESS_H
2 #define CMARK_API_TEST_HARNESS_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 typedef struct {
9 	int test_num;
10 	int num_passed;
11 	int num_failed;
12 	int num_skipped;
13 } test_batch_runner;
14 
15 test_batch_runner*
16 test_batch_runner_new();
17 
18 void
19 SKIP(test_batch_runner *runner, int num_tests);
20 
21 void
22 OK(test_batch_runner *runner, int cond, const char *msg, ...);
23 
24 void
25 INT_EQ(test_batch_runner *runner, int got, int expected, const char *msg, ...);
26 
27 void
28 STR_EQ(test_batch_runner *runner, const char *got, const char *expected,
29        const char *msg, ...);
30 
31 int
32 test_ok(test_batch_runner *runner);
33 
34 void
35 test_print_summary(test_batch_runner *runner);
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif
42 
43