1 2struct test_result { 3 unsigned int test_count; 4 unsigned int pass; 5 unsigned int fail; 6}; 7 8struct test { 9 const char * name; 10 void (*test_func)(struct test_result * result); 11 struct test_result result; 12}; 13 14void run_tests(struct test tests[]); 15 16void test_begin(struct test_result * result); 17void test_check(struct test_result * result, int cond); 18