#include "tests.h"
#include <CUnit/Basic.h>
#include <CUnit/CUnit.h>
#include <stdio.h>
#include <string.h>
int main() {
int err;
CU_pSuite pSuite = NULL;
if (CUE_SUCCESS != CU_initialize_registry())
return CU_get_error();
pSuite = CU_add_suite("Suite Tools", NULL, NULL);
if (NULL == pSuite) {
CU_cleanup_registry();
return CU_get_error();
}
if ((NULL == CU_add_test(pSuite, "test of mysofa_check", test_check)) ||
(NULL ==
CU_add_test(pSuite, "test of mysofa_check_data", test_check_data)) ||
(NULL == CU_add_test(pSuite, "test of mysofa_lookup", test_lookup)) ||
(NULL ==
CU_add_test(pSuite, "test of mysofa_neighbors", test_neighbors)) ||
(NULL ==
CU_add_test(pSuite, "test of mysofa_interpolate", test_interpolate)) ||
(NULL == CU_add_test(pSuite, "test of mysofa_resample", test_resample)) ||
(NULL == CU_add_test(pSuite, "test of mysofa_loudness", test_loudness)) ||
(NULL == CU_add_test(pSuite, "test of mysofa_minphase", test_minphase)) ||
(NULL == CU_add_test(pSuite, "test of mysofa_cache", test_cache)) ||
(NULL ==
CU_add_test(pSuite, "test of mysofa_easy open", test_easy_open)) ||
(NULL ==
CU_add_test(pSuite, "test of mysofa_easy nonorm", test_easy_nonorm)) ||
(NULL == CU_add_test(pSuite, "test of mysofa_easy", test_easy)) ||
(NULL == CU_add_test(pSuite, "test of user defined variables",
test_user_defined_variable))) {
CU_cleanup_registry();
return CU_get_error();
}
CU_basic_set_mode(CU_BRM_VERBOSE);
CU_basic_run_tests();
err = CU_get_number_of_failures();
CU_cleanup_registry();
return err;
}