Skip to content

Commit 44fdeb1

Browse files
Jordan Yatescarlescufi
authored andcommitted
tests: lib: cmsis: add CMSIS-NN integration tests
Import a selection of tests from the CMSIS-NN unit testing suite to validate that the integration into Zephyr is working correctly. Complete functional testing is left to the complete set of unit-tests in the externally maintained code. Signed-off-by: Jordan Yates <[email protected]>
1 parent d1ae54a commit 44fdeb1

File tree

4 files changed

+705
-0
lines changed

4 files changed

+705
-0
lines changed

tests/lib/cmsis_nn/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
cmake_minimum_required(VERSION 3.20.0)
4+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
5+
project(cmsis_nn)
6+
7+
target_sources(app PRIVATE
8+
src/main.c
9+
)

tests/lib/cmsis_nn/prj.conf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
CONFIG_ZTEST=y
2+
CONFIG_NEWLIB_LIBC=y
3+
CONFIG_CMSIS_DSP=y
4+
CONFIG_CMSIS_NN=y
5+
CONFIG_CMSIS_NN_ACTIVATION=y
6+
CONFIG_CMSIS_NN_BASICMATH=y
7+
CONFIG_CMSIS_NN_CONCATENATION=y
8+
CONFIG_CMSIS_NN_CONVOLUTION=y
9+
CONFIG_CMSIS_NN_FULLYCONNECTED=y
10+
CONFIG_CMSIS_NN_NNSUPPORT=y
11+
CONFIG_CMSIS_NN_POOLING=y
12+
CONFIG_CMSIS_NN_RESHAPE=y
13+
CONFIG_CMSIS_NN_SOFTMAX=y
14+
CONFIG_CMSIS_NN_SVD=y

0 commit comments

Comments
 (0)