Coverage test with log (#4868)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Wed, 27 Mar 2019 03:36:47 +0000 (12:36 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Wed, 27 Mar 2019 03:36:47 +0000 (12:36 +0900)
Enable logging and dot-dump on coverage test

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

index 5dcfad3..15ee04d 100755 (executable)
@@ -37,6 +37,16 @@ source tests/scripts/test_driver.sh \
         --ldlibrarypath="$ROOT_PATH/Product/out/lib/neurun:$ROOT_PATH/Product/out/lib" \
         --reportdir="$ROOT_PATH/report/cpu" .
 
+# Enable all logs (acl_cl kernel)
+export OP_BACKEND_ALLOPS=acl_cl
+export NEURUN_LOG_ENABLE=1
+export GRAPH_DOT_DUMP=1
+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" .
+
 mkdir -p gcov
 find Product -type f \( -iname *.gcda -or -iname *.gcno \) -exec mv {} ./gcov/. \;