1 /* 2 * SPDX-FileCopyrightText: Copyright 2010-2023 Arm Limited and/or its affiliates <open-source-office@arm.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Licensed under the Apache License, Version 2.0 (the License); you may 7 * not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 #include <stdbool.h> 20 #include <stdint.h> 21 #include <stdio.h> 22 #include <stdlib.h> 23 #include <string.h> 24 25 #include "../test_arm_avgpool_s16.c" 26 #include "unity.h" 27 28 #ifdef USING_FVP_CORSTONE_300 29 extern void uart_init(void); 30 #endif 31 32 /* This function is called from the autogenerated file. 33 * The name must be exactly like this 34 */ setUp(void)35void setUp(void) 36 { /* This is run before EACH TEST */ 37 #ifdef USING_FVP_CORSTONE_300 38 uart_init(); 39 #endif 40 } 41 42 /* This function is called from the autogenerated file. 43 * The name must be exactly like this 44 */ tearDown(void)45void tearDown(void) {} 46 test_avgpooling_int16_arm_avgpool_s16(void)47void test_avgpooling_int16_arm_avgpool_s16(void) { avgpooling_int16_arm_avgpool_s16(); } 48 test_avgpooling_1_int16_arm_avgpool_s16(void)49void test_avgpooling_1_int16_arm_avgpool_s16(void) { avgpooling_int16_1_arm_avgpool_s16(); } test_avgpooling_2_int16_arm_avgpool_s16(void)50void test_avgpooling_2_int16_arm_avgpool_s16(void) { avgpooling_int16_2_arm_avgpool_s16(); } test_avgpooling_3_int16_arm_avgpool_s16(void)51void test_avgpooling_3_int16_arm_avgpool_s16(void) { avgpooling_int16_3_arm_avgpool_s16(); } 52 test_buffer_size_mve_arm_avgpool_s16(void)53void test_buffer_size_mve_arm_avgpool_s16(void) { buffer_size_mve_arm_avgpool_s16(); } test_buffer_size_dsp_arm_avgpool_s16(void)54void test_buffer_size_dsp_arm_avgpool_s16(void) { buffer_size_dsp_arm_avgpool_s16(); } 55 test_avgpooling_param_fail_int16_arm_avgpool_s16(void)56void test_avgpooling_param_fail_int16_arm_avgpool_s16(void) { avgpooling_int16_param_fail_arm_avgpool_s16(); } 57