38 CxTestSuite *cx_test_suite_printf(void); |
38 CxTestSuite *cx_test_suite_printf(void); |
39 CxTestSuite *cx_test_suite_iterator(void); |
39 CxTestSuite *cx_test_suite_iterator(void); |
40 CxTestSuite *cx_test_suite_empty_list(void); |
40 CxTestSuite *cx_test_suite_empty_list(void); |
41 CxTestSuite *cx_test_suite_array_list(void); |
41 CxTestSuite *cx_test_suite_array_list(void); |
42 CxTestSuite *cx_test_suite_linked_list(void); |
42 CxTestSuite *cx_test_suite_linked_list(void); |
43 |
|
44 CxTestSuite *cx_test_suite_array_list_defaulted_funcs(void); |
43 CxTestSuite *cx_test_suite_array_list_defaulted_funcs(void); |
45 |
|
46 CxTestSuite *cx_test_suite_linked_list_defaulted_funcs(void); |
44 CxTestSuite *cx_test_suite_linked_list_defaulted_funcs(void); |
47 CxTestSuite *cx_test_suite_tree_low_level(void); |
45 CxTestSuite *cx_test_suite_tree_low_level(void); |
|
46 CxTestSuite *cx_test_suite_tree_high_level(void); |
48 CxTestSuite *cx_test_suite_mempool(void); |
47 CxTestSuite *cx_test_suite_mempool(void); |
49 CxTestSuite *cx_test_suite_hash_map(void); |
48 CxTestSuite *cx_test_suite_hash_map(void); |
50 |
49 |
51 #define run_tests(suite) cx_test_run_stdout(suite); success += (suite)->success; failure += (suite)->failure |
50 #define run_tests(suite) cx_test_run_stdout(suite); success += (suite)->success; failure += (suite)->failure |
52 #define execute_test_suites(...) unsigned success = 0, failure = 0; CxTestSuite* test_suites[] = {__VA_ARGS__}; \ |
51 #define execute_test_suites(...) unsigned success = 0, failure = 0; CxTestSuite* test_suites[] = {__VA_ARGS__}; \ |
70 cx_test_suite_array_list(), |
69 cx_test_suite_array_list(), |
71 cx_test_suite_linked_list(), |
70 cx_test_suite_linked_list(), |
72 cx_test_suite_array_list_defaulted_funcs(), |
71 cx_test_suite_array_list_defaulted_funcs(), |
73 cx_test_suite_linked_list_defaulted_funcs(), |
72 cx_test_suite_linked_list_defaulted_funcs(), |
74 cx_test_suite_tree_low_level(), |
73 cx_test_suite_tree_low_level(), |
|
74 cx_test_suite_tree_high_level(), |
75 cx_test_suite_mempool(), |
75 cx_test_suite_mempool(), |
76 cx_test_suite_hash_map() |
76 cx_test_suite_hash_map() |
77 ); |
77 ); |
78 printf("=== OVERALL RESULT ===\n"); |
78 printf("=== OVERALL RESULT ===\n"); |
79 printf(" Total: %u\n Success: %u\n Failure: %u\n", |
79 printf(" Total: %u\n Success: %u\n Failure: %u\n", |