3 # Test suite: ${ARCHIVE_PATH}/coverage-suite.tar.gz
4 # NNPackage test suite: ${ARCHIVE_PATH}/nnpkg-test-suite.tar.gz (optional)
7 source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
11 NNAS_WORKSPACE=${NNAS_WORKSPACE:-build}
12 if [[ -z "${ARCHIVE_PATH}" ]]; then
13 ARCHIVE_PATH=${NNAS_WORKSPACE}/archive
14 echo "Default archive directory including nncc package and resources: ${ARCHIVE_PATH}"
17 pushd $ROOT_PATH > /dev/null
19 tar -zxf ${ARCHIVE_PATH}/coverage-suite.tar.gz -C ./
21 if [[ ! -e $ROOT_PATH/tests/scripts/build_path_depth.txt ]]; then
22 echo "Cannot find prefix strip file"
25 export GCOV_PREFIX_STRIP=`cat $ROOT_PATH/tests/scripts/build_path_depth.txt`
27 ./infra/scripts/test_ubuntu_runtime.sh --backend acl_cl --tflite-loader
28 ./infra/scripts/test_ubuntu_runtime.sh --backend acl_neon
29 ./infra/scripts/test_ubuntu_runtime.sh --backend cpu
31 # Enable all logs (mixed backend)
32 TENSOR_LOGGING=trace_log.txt ONERT_LOG_ENABLE=1 GRAPH_DOT_DUMP=1 ./infra/scripts/test_ubuntu_runtime_mixed.sh
33 # Enable trace event (acl_cl default backend)
34 export TRACE_FILEPATH=trace.json
35 TFLiteModelVerification "acl_cl" "Product/out/test/list/frameworktest_list.armv7l.acl_cl.txt" "report/acl_cl/trace"
39 ./infra/scripts/test_ubuntu_runtime.sh --interp
41 # nnpackage test suite
42 if [[ -e ${ARCHIVE_PATH}/nnpkg-test-suite.tar.gz ]]; then
43 tar -zxf ${ARCHIVE_PATH}/nnpkg-test-suite.tar.gz -C ./
44 ./infra/scripts/test_arm_nnpkg.sh
47 # Pack coverage test data: coverage-data.tar.gz
48 find Product -type f \( -iname *.gcda -or -iname *.gcno \) > include_lists.txt
49 tar -zcf ${ARCHIVE_PATH}/coverage-data.tar.gz -T include_lists.txt
50 rm -rf include_lists.txt