[Tizen] Fix gcov build error accepted/tizen/unified/20240319.141110 accepted/tizen/unified/20240319.154850 accepted/tizen/unified/20240326.105104 accepted/tizen/unified/x/20240320.132902 accepted/tizen/unified/x/20240327.044847
authorgichan2-jang <gichan2.jang@samsung.com>
Tue, 19 Mar 2024 01:33:01 +0000 (10:33 +0900)
committerSangjung Woo <again4you@gmail.com>
Tue, 19 Mar 2024 02:22:39 +0000 (11:22 +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-edge.spec

index 7d73be966c0b353635a32d6239b285d350923cee..641eb8e44419151a7964d72f5caeb545884a3dff 100644 (file)
@@ -146,9 +146,9 @@ find . -name "*.gcno" -exec sh -c 'touch -a "${1%.gcno}.gcda"' _ {} \;
 find . -name "CMakeCCompilerId*.gcda" -delete
 find . -name "CMakeCXXCompilerId*.gcda" -delete
 # Generate report
-lcov -t 'NNStreamer-edge unittest coverage' -o unittest.info -c -d . -b $(pwd) --no-external
+lcov -t 'NNStreamer-edge unittest coverage' -o unittest.info -c -d . -b $(pwd) --no-external --ignore-errors mismatch
 # Exclude test files.
-lcov -r unittest.info "*/tests/*" -o unittest-filtered.info
+lcov -r unittest.info "*/tests/*" -o unittest-filtered.info --ignore-errors graph,unused
 # Visualize the report
 genhtml -o result unittest-filtered.info -t "NNStreamer-edge %{version}-%{release} ${VCS}" --ignore-errors source -p ${RPM_BUILD_DIR}