#include <stdio.h>
#include <stdlib.h>
#include "test.h"
#include "base64.h"
#include "crypto.h"
#include "utils.h"
int test_main(
int argc,
char **argv);
#ifdef _WIN32
int wmain(
int argc,
wchar_t **argv) {
return test_main(
1,
"davtest");
}
#else
int main(
int argc,
char **argv) {
return test_main(argc, argv);
}
#endif
int test_main(
int argc,
char **argv) {
printf(
"libidav tests\n");
printf(
"-------------\n\n");
UcxTestSuite* suite = ucx_test_suite_new();
ucx_test_register(suite, test_util_base64decode);
ucx_test_register(suite, test_util_base64decode_len);
ucx_test_register(suite, test_util_base64encode);
ucx_test_register(suite, test_util_decrypt_str_k);
ucx_test_register(suite, test_util_encrypt_str_k);
ucx_test_register(suite, test_crypto_buffer);
ucx_test_register(suite, test_crypto_stream);
ucx_test_register(suite, test_dav_pw2key);
ucx_test_register(suite, test_util_parse_creationdate);
ucx_test_run(suite, stdout);
fflush(stdout);
ucx_test_suite_free(suite);
return 0;
}