summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>2019-03-06 17:21:57 +0900
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>2019-03-06 17:21:57 +0900
commit0e878875d543fd28441f5081affc36b7a041e3bd (patch)
tree9d41207b81cf945169c92f6115e675e345bee536 /tests
parent01adba1fae4cddd7069a17a028543866278954a3 (diff)
downloadnnfw-0e878875d543fd28441f5081affc36b7a041e3bd.tar.gz
nnfw-0e878875d543fd28441f5081affc36b7a041e3bd.tar.bz2
nnfw-0e878875d543fd28441f5081affc36b7a041e3bd.zip
Generate NNAPI tests during CMake configuration (#4601)
The current implementation invokes test generating script inside Makefile. Now, CMake will invoke this script during configuration. Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/nnapi/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/nnapi/CMakeLists.txt b/tests/nnapi/CMakeLists.txt
index 2fcfb7aba..434266f75 100644
--- a/tests/nnapi/CMakeLists.txt
+++ b/tests/nnapi/CMakeLists.txt
@@ -2,6 +2,10 @@ if (NOT BUILD_RUNTIME_NNAPI_TEST)
return()
endif(NOT BUILD_RUNTIME_NNAPI_TEST)
+if (GENERATE_RUNTIME_NNAPI_TESTS)
+ execute_process(COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/specs/generate_test.sh)
+endif(GENERATE_RUNTIME_NNAPI_TESTS)
+
# Executable `runtime_run` (Dummy runner executable using NN API)
set(RUNTIME_NNAPI_TEST nnapi_gtest)
set(RUNTIME_NNAPI_TEST_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/TestMain.cpp