Subversion Repositories dashGPS

Rev

Go to most recent revision | Blame | Compare with Previous | 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_RMS_TEST(suffix)              \
  11.     STATISTICS_DEFINE_TEST_TEMPLATE_BUF1_BLK(   \
  12.         rms,                                    \
  13.         suffix,                                 \
  14.         TYPE_FROM_ABBREV(suffix),               \
  15.         TYPE_FROM_ABBREV(suffix),               \
  16.         STATISTICS_SNR_COMPARE_INTERFACE)
  17.  
  18. JTEST_ARM_RMS_TEST(f32);
  19. JTEST_ARM_RMS_TEST(q31);
  20. JTEST_ARM_RMS_TEST(q15);
  21.  
  22. /*--------------------------------------------------------------------------------*/
  23. /* Collect all tests in a group. */
  24. /*--------------------------------------------------------------------------------*/
  25.  
  26. JTEST_DEFINE_GROUP(rms_tests)
  27. {
  28.     /*
  29.       To skip a test, comment it out.
  30.     */
  31.     JTEST_TEST_CALL(arm_rms_f32_test);
  32.     JTEST_TEST_CALL(arm_rms_q31_test);
  33.     JTEST_TEST_CALL(arm_rms_q15_test);
  34. }
  35.