31 |
31 |
32 #include "ucx/test.h" |
32 #include "ucx/test.h" |
33 |
33 |
34 #include "main.h" |
34 #include "main.h" |
35 |
35 |
|
36 #include "allocator_tests.h" |
36 #include "logging_tests.h" |
37 #include "logging_tests.h" |
37 #include "list_tests.h" |
38 #include "list_tests.h" |
38 #include "string_tests.h" |
39 #include "string_tests.h" |
39 #include "mpool_tests.h" |
40 #include "mpool_tests.h" |
40 #include "map_tests.h" |
41 #include "map_tests.h" |
110 if (suite->failure == 2 && suite->success == 3) { |
111 if (suite->failure == 2 && suite->success == 3) { |
111 ucx_test_suite_free(suite); |
112 ucx_test_suite_free(suite); |
112 |
113 |
113 printf("\nLibrary function tests\n"); |
114 printf("\nLibrary function tests\n"); |
114 suite = ucx_test_suite_new(); |
115 suite = ucx_test_suite_new(); |
|
116 /* UcxAllocator Tests */ |
|
117 ucx_test_register(suite, test_ucx_default_allocator); |
|
118 |
115 /* sstring Tests */ |
119 /* sstring Tests */ |
116 ucx_test_register(suite, test_sstr); |
120 ucx_test_register(suite, test_sstr); |
117 ucx_test_register(suite, test_sstr_len_cat); |
121 ucx_test_register(suite, test_sstr_len_cat); |
118 ucx_test_register(suite, test_sstrcmp); |
122 ucx_test_register(suite, test_sstrcmp); |
119 ucx_test_register(suite, test_sstrcasecmp); |
123 ucx_test_register(suite, test_sstrcasecmp); |
171 ucx_test_register(suite, test_ucx_properties2map); |
175 ucx_test_register(suite, test_ucx_properties2map); |
172 ucx_test_register(suite, test_ucx_properties_load); |
176 ucx_test_register(suite, test_ucx_properties_load); |
173 ucx_test_register(suite, test_ucx_properties_store); |
177 ucx_test_register(suite, test_ucx_properties_store); |
174 |
178 |
175 /* UcxBuffer Tests */ |
179 /* UcxBuffer Tests */ |
176 ucx_test_register(suite, test_ucx_buffer_seek); |
180 ucx_test_register(suite, test_ucx_buffer_eof); |
|
181 ucx_test_register(suite, test_ucx_buffer_seek_set); |
|
182 ucx_test_register(suite, test_ucx_buffer_seek_cur); |
|
183 ucx_test_register(suite, test_ucx_buffer_seek_end); |
|
184 ucx_test_register(suite, test_ucx_buffer_seek_oob); |
|
185 ucx_test_register(suite, test_ucx_buffer_seek_invalid); |
|
186 ucx_test_register(suite, test_ucx_buffer_seek_overflow); |
177 ucx_test_register(suite, test_ucx_buffer_putc); |
187 ucx_test_register(suite, test_ucx_buffer_putc); |
178 ucx_test_register(suite, test_ucx_buffer_putc_ax); |
188 ucx_test_register(suite, test_ucx_buffer_putc_ae); |
|
189 ucx_test_register(suite, test_ucx_buffer_putc_oob); |
|
190 ucx_test_register(suite, test_ucx_buffer_putc_oobae); |
|
191 ucx_test_register(suite, test_ucx_buffer_putc_size); |
179 ucx_test_register(suite, test_ucx_buffer_getc); |
192 ucx_test_register(suite, test_ucx_buffer_getc); |
180 ucx_test_register(suite, test_ucx_buffer_write); |
193 ucx_test_register(suite, test_ucx_buffer_write); |
181 ucx_test_register(suite, test_ucx_buffer_write_ax); |
194 ucx_test_register(suite, test_ucx_buffer_write_ax); |
182 ucx_test_register(suite, test_ucx_buffer_read); |
195 ucx_test_register(suite, test_ucx_buffer_read); |
183 ucx_test_register(suite, test_ucx_buffer_extract); |
196 ucx_test_register(suite, test_ucx_buffer_extract); |