45 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); |
46 CxTestSuite *cx_test_suite_tree_high_level(void); |
47 CxTestSuite *cx_test_suite_mempool(void); |
47 CxTestSuite *cx_test_suite_mempool(void); |
48 CxTestSuite *cx_test_suite_hash_map(void); |
48 CxTestSuite *cx_test_suite_hash_map(void); |
49 CxTestSuite *cx_test_suite_properties(void); |
49 CxTestSuite *cx_test_suite_properties(void); |
|
50 CxTestSuite *cx_test_suite_json(void); |
50 |
51 |
51 #define run_tests(suite) cx_test_run_stdout(suite); success += (suite)->success; failure += (suite)->failure |
52 #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__}; \ |
53 #define execute_test_suites(...) unsigned success = 0, failure = 0; CxTestSuite* test_suites[] = {__VA_ARGS__}; \ |
53 for (size_t i = 0; i < sizeof(test_suites)/sizeof(void*) ; i++) {run_tests(test_suites[i]);} (void)0 |
54 for (size_t i = 0; i < sizeof(test_suites)/sizeof(void*) ; i++) {run_tests(test_suites[i]);} (void)0 |
54 #define free_test_suites for (size_t i = 0 ; i < sizeof(test_suites)/sizeof(void*) ; i++) {cx_test_suite_free(test_suites[i]);} (void)0 |
55 #define free_test_suites for (size_t i = 0 ; i < sizeof(test_suites)/sizeof(void*) ; i++) {cx_test_suite_free(test_suites[i]);} (void)0 |
73 cx_test_suite_linked_list_defaulted_funcs(), |
74 cx_test_suite_linked_list_defaulted_funcs(), |
74 cx_test_suite_tree_low_level(), |
75 cx_test_suite_tree_low_level(), |
75 cx_test_suite_tree_high_level(), |
76 cx_test_suite_tree_high_level(), |
76 cx_test_suite_mempool(), |
77 cx_test_suite_mempool(), |
77 cx_test_suite_hash_map(), |
78 cx_test_suite_hash_map(), |
78 cx_test_suite_properties() |
79 cx_test_suite_properties(), |
|
80 cx_test_suite_json() |
79 ); |
81 ); |
80 printf("=== OVERALL RESULT ===\n"); |
82 printf("=== OVERALL RESULT ===\n"); |
81 printf(" Total: %u\n Success: %u\n Failure: %u\n", |
83 printf(" Total: %u\n Success: %u\n Failure: %u\n", |
82 success + failure, success, failure); |
84 success + failure, success, failure); |
83 free_test_suites; |
85 free_test_suites; |