| 51 |
49 |
| 52 int test_main(int argc, char **argv) { |
50 int test_main(int argc, char **argv) { |
| 53 printf("libidav tests\n"); |
51 printf("libidav tests\n"); |
| 54 printf("-------------\n\n"); |
52 printf("-------------\n\n"); |
| 55 |
53 |
| 56 CxTestSuite* suite = cx_test_suite_new("libidav"); |
54 UcxTestSuite* suite = ucx_test_suite_new(); |
| 57 |
55 |
| 58 cx_test_register(suite, test_util_base64decode); |
56 ucx_test_register(suite, test_util_base64decode); |
| 59 cx_test_register(suite, test_util_base64decode_len); |
57 ucx_test_register(suite, test_util_base64decode_len); |
| 60 cx_test_register(suite, test_util_base64encode); |
58 ucx_test_register(suite, test_util_base64encode); |
| 61 cx_test_register(suite, test_util_decrypt_str_k); |
59 ucx_test_register(suite, test_util_decrypt_str_k); |
| 62 cx_test_register(suite, test_util_encrypt_str_k); |
60 ucx_test_register(suite, test_util_encrypt_str_k); |
| 63 cx_test_register(suite, test_crypto_buffer); |
61 ucx_test_register(suite, test_crypto_buffer); |
| 64 cx_test_register(suite, test_crypto_stream); |
62 ucx_test_register(suite, test_crypto_stream); |
| 65 cx_test_register(suite, test_dav_pw2key); |
63 ucx_test_register(suite, test_dav_pw2key); |
| 66 cx_test_register(suite, test_util_parse_creationdate); |
64 ucx_test_register(suite, test_util_parse_creationdate); |
| 67 |
65 |
| 68 cx_test_register(suite, test_resource_iterator_visitor); |
66 ucx_test_run(suite, stdout); |
| 69 cx_test_register(suite, test_resource_map); |
|
| 70 |
|
| 71 cx_test_run(suite, stdout, (cx_write_func)fwrite); |
|
| 72 fflush(stdout); |
67 fflush(stdout); |
| 73 cx_test_suite_free(suite); |
68 ucx_test_suite_free(suite); |
| 74 |
69 |
| 75 return 0; |
70 return 0; |
| 76 } |
71 } |
| 77 |
72 |