summaryrefslogtreecommitdiff
path: root/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests
diff options
context:
space:
mode:
Diffstat (limited to 'fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests')
-rw-r--r--fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_templates.h120
-rw-r--r--fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_test_data.h31
-rw-r--r--fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_test_group.h9
-rw-r--r--fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_tests.h11
4 files changed, 0 insertions, 171 deletions
diff --git a/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_templates.h b/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_templates.h
deleted file mode 100644
index bc94791..0000000
--- a/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_templates.h
+++ /dev/null
@@ -1,120 +0,0 @@
-#ifndef _SUPPORT_TEMPLATES_H_
-#define _SUPPORT_TEMPLATES_H_
-
-/*--------------------------------------------------------------------------------*/
-/* Includes */
-/*--------------------------------------------------------------------------------*/
-
-#include "test_templates.h"
-
-/*--------------------------------------------------------------------------------*/
-/* Group Specific Templates */
-/*--------------------------------------------------------------------------------*/
-
-/**
- * Compare the outputs from the function under test and the reference function.
- */
-#define SUPPORT_COMPARE_INTERFACE(block_size, \
- output_type) \
- do \
- { \
- TEST_ASSERT_BUFFERS_EQUAL( \
- support_output_ref.data_ptr, \
- support_output_fut.data_ptr, \
- block_size * sizeof(output_type)); \
- } while (0) \
-
-/*--------------------------------------------------------------------------------*/
-/* Input Interfaces */
-/*--------------------------------------------------------------------------------*/
-/*
- * General:
- * Input interfaces provide inputs to functions inside test templates. They
- * ONLY provide the inputs. The output variables should be hard coded.
- *
- * The input interfaces must have the following format:
- *
- * ARM_xxx_INPUT_INTERFACE() or
- * REF_xxx_INPUT_INTERFACE()
- *
- * The xxx must be lowercase, and is intended to be the indentifying substring
- * in the function's name. Acceptable values are 'sub' or 'add' from the
- * functions arm_add_q31.
- */
-
-#define ARM_copy_INPUT_INTERFACE(input, block_size) \
- PAREN(input, support_output_fut.data_ptr, block_size)
-
-#define REF_copy_INPUT_INTERFACE(input, block_size) \
- PAREN(input, support_output_ref.data_ptr, block_size)
-
-#define ARM_fill_INPUT_INTERFACE(elt, block_size) \
- PAREN(elt, support_output_fut.data_ptr, block_size)
-
-#define REF_fill_INPUT_INTERFACE(elt, block_size) \
- PAREN(elt, support_output_ref.data_ptr, block_size)
-
-#define ARM_x_to_y_INPUT_INTERFACE(input, block_size) \
- PAREN(input, support_output_fut.data_ptr, block_size)
-
-#define REF_x_to_y_INPUT_INTERFACE(input, block_size) \
- PAREN(input, support_output_ref.data_ptr, block_size)
-
-/*--------------------------------------------------------------------------------*/
-/* Test Templates */
-/*--------------------------------------------------------------------------------*/
-
-
-/**
- * Specialization of #TEST_TEMPLATE_BUF1_BLK() for support tests.
- *
- * @note This macro relies on the existance of ARM_xxx_INPUT_INTERFACE and
- * REF_xxx_INPUT_INTERFACEs.
- */
-#define SUPPORT_DEFINE_TEST_TEMPLATE_BUF1_BLK(fn_name, \
- suffix, \
- input_type, \
- output_type, \
- comparison_interface) \
- JTEST_DEFINE_TEST(arm_##fn_name##_##suffix##_test, \
- arm_##fn_name##_##suffix) \
- { \
- TEST_TEMPLATE_BUF1_BLK( \
- support_f_all, \
- support_block_sizes, \
- input_type, \
- output_type, \
- arm_##fn_name##_##suffix, \
- ARM_##fn_name##_INPUT_INTERFACE, \
- ref_##fn_name##_##suffix, \
- REF_##fn_name##_INPUT_INTERFACE, \
- comparison_interface); \
- }
-
-/**
- * Specialization of #TEST_TEMPLATE_ELT1_BLK() for support tests.
- *
- * @note This macro relies on the existance of ARM_xxx_INPUT_INTERFACE and
- * REF_xxx_INPUT_INTERFACEs.
- */
-#define SUPPORT_DEFINE_TEST_TEMPLATE_ELT1_BLK(fn_name, \
- suffix, \
- elt_type, \
- output_type, \
- comparison_interface) \
- JTEST_DEFINE_TEST(arm_##fn_name##_##suffix##_test, \
- arm_##fn_name##_##suffix) \
- { \
- TEST_TEMPLATE_ELT1_BLK( \
- support_elts, \
- support_block_sizes, \
- elt_type, \
- output_type, \
- arm_##fn_name##_##suffix, \
- ARM_##fn_name##_INPUT_INTERFACE, \
- ref_##fn_name##_##suffix, \
- REF_##fn_name##_INPUT_INTERFACE, \
- comparison_interface); \
- }
-
-#endif /* _SUPPORT_TEMPLATES_H_ */
diff --git a/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_test_data.h b/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_test_data.h
deleted file mode 100644
index cc6c636..0000000
--- a/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_test_data.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef ARM_SUPPORT_TEST_DATA_H
-#define ARM_SUPPORT_TEST_DATA_H
-
-/*--------------------------------------------------------------------------------*/
-/* Includes */
-/*--------------------------------------------------------------------------------*/
-
-#include "arr_desc.h"
-
-/*--------------------------------------------------------------------------------*/
-/* Declare Variables */
-/*--------------------------------------------------------------------------------*/
-
-/* Input/Output Buffers */
-ARR_DESC_DECLARE(support_output_fut);
-ARR_DESC_DECLARE(support_output_ref);
-
-/* Block Sizes*/
-ARR_DESC_DECLARE(support_block_sizes);
-
-/* Numbers */
-ARR_DESC_DECLARE(support_elts);
-
-/* Float Inputs */
-ARR_DESC_DECLARE(support_zeros);
-ARR_DESC_DECLARE(support_f_2);
-ARR_DESC_DECLARE(support_f_15);
-ARR_DESC_DECLARE(support_f_32);
-ARR_DESC_DECLARE(support_f_all);
-
-#endif
diff --git a/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_test_group.h b/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_test_group.h
deleted file mode 100644
index ef3a768..0000000
--- a/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_test_group.h
+++ /dev/null
@@ -1,9 +0,0 @@
-#ifndef _SUPPORT_TEST_GROUP_H_
-#define _SUPPORT_TEST_GROUP_H_
-
-/*--------------------------------------------------------------------------------*/
-/* Declare Test Groups */
-/*--------------------------------------------------------------------------------*/
-JTEST_DECLARE_GROUP(support_tests);
-
-#endif /* _SUPPORT_TEST_GROUP_H_ */
diff --git a/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_tests.h b/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_tests.h
deleted file mode 100644
index 2eab273..0000000
--- a/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_tests.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#ifndef _SUPPORT_TESTS_H_
-#define _SUPPORT_TESTS_H_
-
-/*--------------------------------------------------------------------------------*/
-/* Test/Group Declarations */
-/*--------------------------------------------------------------------------------*/
-JTEST_DECLARE_GROUP(copy_tests);
-JTEST_DECLARE_GROUP(fill_tests);
-JTEST_DECLARE_GROUP(x_to_y_tests);
-
-#endif /* _SUPPORT_TESTS_H_ */