12 #include <volk/volk.h>
20 #define VOLK_INIT_PUPP(func, puppet_master_func, test_params) \
21 volk_test_case_t(func##_get_func_desc(), \
22 (void (*)())func##_manual, \
24 std::string(#puppet_master_func), \
27 #define VOLK_INIT_TEST(func, test_params) \
28 volk_test_case_t(func##_get_func_desc(), \
29 (void (*)())func##_manual, \
33 #define QA(test) test_cases.push_back(test);
45 test_params_rotator.
set_scalar(std::polar(1.0f, 0.1f));
46 test_params_rotator.
set_tol(1e-3);
48 std::vector<volk_test_case_t> test_cases;
55 volk_32fc_s32fc_x2_rotator_32fc,
60 volk_32f_x2_fm_detectpuppet_32f, volk_32f_s32f_32f_fm_detect_32f,
test_params))
92 QA(
VOLK_INIT_TEST(volk_32f_s32f_calc_spectral_noise_floor_32f, test_params_inacc))
94 QA(
VOLK_INIT_TEST(volk_32fc_x2_conjugate_dot_prod_32fc, test_params_inacc_tenth))
167 volk_32f_s32f_mod_rangepuppet_32f, volk_32f_s32f_s32f_mod_range_32f,
test_params))
169 volk_8u_x3_encodepolarpuppet_8u, volk_8u_x3_encodepolar_8u_x2,
test_params))
171 volk_32f_8u_polarbutterfly_32f,
174 volk_32fc_s32f_x2_power_spectral_density_32f,
Definition: qa_utils.h:56
volk_test_params_t make_absolute(float tol)
Definition: qa_utils.h:96
volk_test_params_t make_tol(float tol)
Definition: qa_utils.h:103
void set_tol(float tol)
Definition: qa_utils.h:82
void set_scalar(lv_32fc_t scalar)
Definition: qa_utils.h:83
std::vector< volk_test_case_t > init_test_list(volk_test_params_t test_params)
Definition: kernel_tests.h:34
#define QA(test)
Definition: kernel_tests.h:33
#define VOLK_INIT_TEST(func, test_params)
Definition: kernel_tests.h:27
#define VOLK_INIT_PUPP(func, puppet_master_func, test_params)
Definition: kernel_tests.h:20
volk_test_params_t test_params(1e-6f, 327.f, 131071, 1987, false, "")