[Tizen] Fix gcov build error accepted/tizen/unified/20240319.141119 accepted/tizen/unified/20240319.154856 accepted/tizen/unified/20240326.105109 accepted/tizen/unified/x/20240320.132930
authorgichan2-jang <gichan2.jang@samsung.com>
Tue, 19 Mar 2024 01:52:24 +0000 (10:52 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Tue, 19 Mar 2024 02:38:13 +0000 (11:38 +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/nnstreamer.spec

index 63d785a..4e70186 100644 (file)
@@ -1030,9 +1030,9 @@ find . -name "CMakeCCompilerId*.gcda" -delete
 find . -name "CMakeCXXCompilerId*.gcda" -delete
 #find . -path "/%{builddir}/*.j
 # Generate report
-lcov -t 'NNStreamer Unit Test Coverage' -o unittest.info -c -d . -b %{builddir} --no-external
+lcov -t 'NNStreamer Unit Test Coverage' -o unittest.info -c -d . -b %{builddir} --no-external --ignore-errors mismatch
 # Exclude generated files (e.g., Orc, Protobuf) and device-dependent filters.
-lcov -r unittest.info "*/*-orc.*" "*/tests/*" "*/tools/*" "*/meson*/*" "*/*@sha/*" "*/*_openvino*" "*/*_edgetpu*" "*/*_movidius_ncsdk2*" "*/*.so.p/*" -o unittest-filtered.info
+lcov -r unittest.info "*/*-orc.*" "*/tests/*" "*/tools/*" "*/meson*/*" "*/*@sha/*" "*/*_openvino*" "*/*_edgetpu*" "*/*_movidius_ncsdk2*" "*/*.so.p/*" -o unittest-filtered.info --ignore-errors graph,unused
 # Visualize the report
 genhtml -o result unittest-filtered.info -t "nnstreamer %{version}-%{release} ${VCS}" --ignore-errors source -p ${RPM_BUILD_DIR}