add_subdirectory(libs)
add_subdirectory(externals)
- add_subdirectory(tools/nnapi_test)
- add_subdirectory(tools/tflite_benchmark)
+ add_subdirectory(tests/tools/nnapi_test)
+ add_subdirectory(tests/tools/tflite_benchmark)
add_subdirectory(runtimes)
if(NOT OBS_BUILD)
add_subdirectory(externals)
add_subdirectory(tools)
+ add_subdirectory(tests)
else(NOT OBS_BUILD)
- add_subdirectory(tools/tflite_benchmark)
- add_subdirectory(tools/nnapi_test)
+ add_subdirectory(tests/tools/tflite_benchmark)
+ add_subdirectory(tests/tools/nnapi_test)
endif(NOT OBS_BUILD)
add_subdirectory(contrib)
build_test_suite: install_internal
@echo "packaging test suite"
@rm -rf $(INSTALL_ROOT)/test-suite.tar.gz
- # Workaround for CI test: copy test script to old directory path
+# Workaround for CI test: copy test script to old directory path
@cp -rf tests/scripts tools/test_driver
- @tar -zcf test-suite.tar.gz tests/ tools/test_driver $(INSTALL_ALIAS) --dereference
+ @tar -zcf test-suite.tar.gz tests/scripts tests/framework tools/test_driver $(INSTALL_ALIAS) --dereference
@rm -rf tools/test_driver
@mv test-suite.tar.gz $(INSTALL_ROOT)/.
@echo "packaging test-coverage suite"
@rm -rf $(INSTALL_ROOT)/coverage-suite.tar.gz
@find Product -name "*.gcno" > include_lists.txt
- # Workaround for CI test: copy test script to old directory path
+# Workaround for CI test: copy test script to old directory path
@cp -rf tests/scripts tools/test_driver
@pwd | grep -o '/' | wc -l > tools/test_driver/build_path_depth.txt
- @tar -zcf coverage-suite.tar.gz tests/ tools/test_driver $(INSTALL_ALIAS) --dereference -T include_lists.txt
+ @tar -zcf coverage-suite.tar.gz tests/scripts tests/framework tools/test_driver $(INSTALL_ALIAS) --dereference -T include_lists.txt
@rm -rf include_lists.txt tools/test_driver/build_path_depth.txt
@rm -rf tools/test_driver
@mv coverage-suite.tar.gz $(INSTALL_ROOT)/.
cp -rf %{buildroot}%{_libdir} %{buildroot}%{test_install_prefix}/Product/out
rm -rf %{buildroot}%{_libdir}/pureacl
## install tests
-cp -rf ./tests %{buildroot}%{test_install_prefix}/.
+cp -rf ./tests/framework %{buildroot}%{test_install_prefix}/framework
## install tools
mkdir -p %{buildroot}%{test_install_prefix}/tools
cp -rf ./tests/scripts %{buildroot}%{test_install_prefix}/tools
-add_subdirectory(tflite_run)
-add_subdirectory(tflite_benchmark)
-add_subdirectory(tflite_benchmark_model)
-add_subdirectory(nnapi_test)
add_subdirectory(nnapi_quickcheck)
add_subdirectory(opencl_tool)