From 751f8e534ef06a5169e891dae60ea79e02e0e117 Mon Sep 17 00:00:00 2001 From: gichan2-jang Date: Tue, 19 Mar 2024 10:56:59 +0900 Subject: [PATCH] [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 --- packaging/mlops-agent.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/mlops-agent.spec b/packaging/mlops-agent.spec index 59b896a..07aefdf 100644 --- a/packaging/mlops-agent.spec +++ b/packaging/mlops-agent.spec @@ -208,10 +208,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 %{builddir} -lcov -t 'ML-Agent unittest coverage' -o unittest.info -c -d . -b $(pwd) +lcov -t 'ML-Agent 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-Agent %{version}-%{release} ${VCS}" --ignore-errors source -p ${RPM_BUILD_DIR} -- 2.7.4