Skip to content

Commit 24952c1

Browse files
authored
[onert/infra] Fix coverage test failure (Samsung#14614)
This commit fixes coverage test failure by teset directory relocation. ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
1 parent 68ab46b commit 24952c1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Makefile.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ coverage_suite_internal: install_all_internal
228228
@echo "packaging test-coverage suite"
229229
@rm -rf $(INSTALL_PATH)/coverage-suite.tar.gz
230230
@find Product -name "*.gcno" > include_lists.txt
231-
@pwd | grep -o '/' | wc -l > tests/scripts/build_path_depth.txt
231+
@pwd | grep -o '/' | wc -l > runtime/tests/scripts/build_path_depth.txt
232232
@tar -zcf coverage-suite.tar.gz tests/scripts infra Product/out --dereference -T include_lists.txt
233-
@rm -rf include_lists.txt tests/scripts/build_path_depth.txt
233+
@rm -rf include_lists.txt runtime/tests/scripts/build_path_depth.txt
234234
@mv coverage-suite.tar.gz $(INSTALL_PATH)/.

infra/scripts/test_coverage.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ tar -zxf ${ARCHIVE_PATH}/coverage-suite.tar.gz -C ./
1818

1919
CheckTestPrepared
2020

21-
if [[ ! -e $ROOT_PATH/tests/scripts/build_path_depth.txt ]]; then
21+
if [[ ! -e $ROOT_PATH/runtime/tests/scripts/build_path_depth.txt ]]; then
2222
echo "Cannot find prefix strip file"
2323
exit 1
2424
fi
25-
export GCOV_PREFIX_STRIP=`cat $ROOT_PATH/tests/scripts/build_path_depth.txt`
25+
export GCOV_PREFIX_STRIP=`cat $ROOT_PATH/runtime/tests/scripts/build_path_depth.txt`
2626

2727
TENSOR_LOGGING=trace_log.txt ./infra/scripts/test_ubuntu_runtime.sh --backend acl_cl --nnapi-frontend
2828
./infra/scripts/test_ubuntu_runtime.sh --backend acl_neon

packaging/nnfw.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ cp -r %{nncc_workspace}/overlay/include/flatbuffers %{overlay_path}/include
212212

213213
%if %{test_build} == 1
214214
%if %{coverage_build} == 1
215-
pwd > tests/scripts/build_path.txt
215+
pwd > runtime/tests/scripts/build_path.txt
216216
%endif # coverage_build
217217
tar -zcf test-suite.tar.gz infra/scripts
218218
%endif # test_build
@@ -276,7 +276,7 @@ tar -zxf test-suite.tar.gz -C %{buildroot}%{test_install_home}
276276
%if %{coverage_build} == 1
277277
mkdir -p %{buildroot}%{test_install_home}/gcov
278278
find %{nnfw_workspace} -name "*.gcno" -exec xargs cp {} %{buildroot}%{test_install_home}/gcov/. \;
279-
install -m 0644 ./tests/scripts/build_path.txt %{buildroot}%{test_install_dir}/test/build_path.txt
279+
install -m 0644 ./runtime/tests/scripts/build_path.txt %{buildroot}%{test_install_dir}/test/build_path.txt
280280
%endif # coverage_build
281281
%endif # test_build
282282

0 commit comments

Comments
 (0)