Coverage report for neurun (#4706)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Wed, 13 Mar 2019 09:40:53 +0000 (18:40 +0900)
committer이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Wed, 13 Mar 2019 09:40:53 +0000 (18:40 +0900)
Change coverage report target to neurun, not pure runtime

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
scripts/standalone/docker_build_cross_coverage.sh
scripts/standalone/test_coverage.sh

index aff61ac..5ea3d7e 100755 (executable)
@@ -43,7 +43,8 @@ export DOCKER_ENV_VARS
 pushd $ROOT_PATH > /dev/null
 
 # TODO use command instead of makefile
-CMD="make && \
+CMD="export OPTIONS+='-DBUILD_NEURUN=ON -DBUILD_PURE_ARM_COMPUTE=OFF' && \
+     make && \
      make install && \
      make build_coverage_suite"
 source nnfw docker-run-user bash -c "$CMD"
index a6ba6ac..aa6a1b9 100755 (executable)
@@ -19,7 +19,20 @@ export GCOV_PREFIX_STRIP=`cat $ROOT_PATH/tests/scripts/build_path_depth.txt`
 
 pushd $ROOT_PATH > /dev/null
 
-source ./tests/scripts/test_driver.sh .
+export OP_BACKEND_ALLOPS=acl_cl
+cp -v ./Product/out/unittest/nnapi_gtest.skip.armv7l-linux.neurun ./Product/out/unittest/nnapi_gtest.skip
+source ./tests/scripts/test_driver.sh \
+        --frameworktest_list_file=tests/scripts/neurun_frameworktest_list.armv7l.acl_cl.txt \
+        --ldlibrarypath="$ROOT_PATH/Product/out/lib/neurun:$ROOT_PATH/Product/out/lib" \
+        --reportdir="$ROOT_PATH/report/acl_cl" .
+
+export OP_BACKEND_ALLOPS=cpu
+cp -v ./Product/out/unittest/nnapi_gtest.skip.armv7l-linux.neurun.cpu ./Product/out/unittest/nnapi_gtest.skip
+source ./tests/scripts/test_driver.sh \
+        --frameworktest_list_file=tests/scripts/neurun_frameworktest_list.armv7l.cpu.txt \
+        --ldlibrarypath="$ROOT_PATH/Product/out/lib/neurun:$ROOT_PATH/Product/out/lib" \
+        --reportdir="$ROOT_PATH/report/cpu" .
+
 mkdir -p gcov
 find Product -type f \( -iname *.gcda -or -iname *.gcno \) -exec mv {} ./gcov/. \;