From: gichan2-jang Date: Tue, 19 Mar 2024 01:12:25 +0000 (+0900) Subject: [Tizen] Fix gcov build error X-Git-Tag: accepted/tizen/unified/20240319.154907 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Faccepted%2Ftizen%2Funified%2F20240319.154907;p=platform%2Fcore%2Fapi%2Fmachine-learning.git [Tizen] Fix gcov build error 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 --- diff --git a/packaging/machine-learning-api.spec b/packaging/machine-learning-api.spec index b324071..7b11791 100644 --- a/packaging/machine-learning-api.spec +++ b/packaging/machine-learning-api.spec @@ -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}