tests/ucxtest.c

changeset 798
7644da6e2d35
parent 789
9b2f5661bebd
child 800
1274e46b3013
equal deleted inserted replaced
797:e0300c2c4e95 798:7644da6e2d35
34 CxTestSuite *cx_test_suite_hash_key(void); 34 CxTestSuite *cx_test_suite_hash_key(void);
35 CxTestSuite *cx_test_suite_allocator(void); 35 CxTestSuite *cx_test_suite_allocator(void);
36 CxTestSuite *cx_test_suite_string(void); 36 CxTestSuite *cx_test_suite_string(void);
37 CxTestSuite *cx_test_suite_buffer(void); 37 CxTestSuite *cx_test_suite_buffer(void);
38 CxTestSuite *cx_test_suite_printf(void); 38 CxTestSuite *cx_test_suite_printf(void);
39 CxTestSuite *cx_test_suite_array_list(void);
40 CxTestSuite *cx_test_suite_linked_list(void);
39 CxTestSuite *cx_test_suite_mempool(void); 41 CxTestSuite *cx_test_suite_mempool(void);
40 CxTestSuite *cx_test_suite_hash_map(void); 42 CxTestSuite *cx_test_suite_hash_map(void);
41 43
42 #define run_tests(suite) cx_test_run_stdout(suite); success += (suite)->success; failure += (suite)->failure 44 #define run_tests(suite) cx_test_run_stdout(suite); success += (suite)->success; failure += (suite)->failure
43 #define execute_test_suites(...) unsigned success = 0, failure = 0; CxTestSuite* test_suites[] = {__VA_ARGS__}; \ 45 #define execute_test_suites(...) unsigned success = 0, failure = 0; CxTestSuite* test_suites[] = {__VA_ARGS__}; \
54 cx_test_suite_hash_key(), 56 cx_test_suite_hash_key(),
55 cx_test_suite_allocator(), 57 cx_test_suite_allocator(),
56 cx_test_suite_string(), 58 cx_test_suite_string(),
57 cx_test_suite_buffer(), 59 cx_test_suite_buffer(),
58 cx_test_suite_printf(), 60 cx_test_suite_printf(),
61 cx_test_suite_array_list(),
62 cx_test_suite_linked_list(),
59 cx_test_suite_mempool(), 63 cx_test_suite_mempool(),
60 cx_test_suite_hash_map() 64 cx_test_suite_hash_map()
61 ); 65 );
62 printf("=== OVERALL RESULT ===\n"); 66 printf("=== OVERALL RESULT ===\n");
63 printf(" Total: %u\n Success: %u\n Failure: %u\n", 67 printf(" Total: %u\n Success: %u\n Failure: %u\n",

mercurial