[Tizen] Fix gcov build error accepted/tizen/unified/20240319.141137 accepted/tizen/unified/20240319.154907 accepted/tizen/unified/x/20240320.133053
authorgichan2-jang <gichan2.jang@samsung.com>
Tue, 19 Mar 2024 01:12:25 +0000 (10:12 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Tue, 19 Mar 2024 02:39:38 +0000 (11:39 +0900)
Due to the lcov 2.0 upgrade, the warning is changed to error so the gcov build fails.
Ignore this case. (Tizen PM guide)

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
packaging/machine-learning-api.spec

index b324071..7b11791 100644 (file)
@@ -421,10 +421,10 @@ find . -name "CMakeCXXCompilerId*.gcda" -delete
 # TODO: the --no-external option is removed to include machine-learning-agent related source files.
 # Restore this option when there is proper way to include those source files.
 pushd build
-lcov -t 'ML API unittest coverage' -o unittest.info -c -d . -b $(pwd)
+lcov -t 'ML API unittest coverage' -o unittest.info -c -d . -b $(pwd) --ignore-errors mismatch
 # Exclude generated files (e.g., Orc, Protobuf) and device-dependent files.
 # Exclude files which are generated by gdbus-codegen and external files in /usr/*.
-lcov -r unittest.info "*/tests/*" "*/meson*/*" "*/*@sha/*" "*/*.so.p/*" "*/*tizen*" "*/*-dbus.c" "/usr/*" -o unittest-filtered.info
+lcov -r unittest.info "*/tests/*" "*/meson*/*" "*/*@sha/*" "*/*.so.p/*" "*/*tizen*" "*/*-dbus.c" "/usr/*" -o unittest-filtered.info --ignore-errors graph,unused
 # Visualize the report
 genhtml -o result unittest-filtered.info -t "ML API %{version}-%{release} ${VCS}" --ignore-errors source -p ${RPM_BUILD_DIR}