Subversion Repositories FuelGauge

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #include "jtest.h"
  2. #include "statistics_test_data.h"
  3. #include "arr_desc.h"
  4. #include "arm_math.h"           /* FUTs */
  5. #include "ref.h"                /* Reference Functions */
  6. #include "test_templates.h"
  7. #include "statistics_templates.h"
  8. #include "type_abbrev.h"
  9.  
  10. #define JTEST_ARM_POWER_TEST(suffix, output_type)   \
  11.     STATISTICS_DEFINE_TEST_TEMPLATE_BUF1_BLK(       \
  12.         power,                                      \
  13.         suffix,                                     \
  14.         TYPE_FROM_ABBREV(suffix),                   \
  15.         TYPE_FROM_ABBREV(suffix),                   \
  16.         STATISTICS_SNR_COMPARE_INTERFACE)
  17.  
  18. JTEST_ARM_POWER_TEST(f32, float32_t);
  19. JTEST_ARM_POWER_TEST(q31, q63_t);
  20. JTEST_ARM_POWER_TEST(q15, q63_t);
  21. JTEST_ARM_POWER_TEST(q7,  q31_t);
  22.  
  23. /*--------------------------------------------------------------------------------*/
  24. /* Collect all tests in a group. */
  25. /*--------------------------------------------------------------------------------*/
  26.  
  27. JTEST_DEFINE_GROUP(power_tests)
  28. {
  29.     /*
  30.       To skip a test, comment it out.
  31.     */
  32.     JTEST_TEST_CALL(arm_power_f32_test);
  33.     JTEST_TEST_CALL(arm_power_q31_test);
  34.     JTEST_TEST_CALL(arm_power_q15_test);
  35.     JTEST_TEST_CALL(arm_power_q7_test);
  36. }
  37.