Fix gcov build error 75/304075/1
authorChanggyu Choi <changyu.choi@samsung.com>
Wed, 10 Jan 2024 00:47:03 +0000 (09:47 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Wed, 10 Jan 2024 00:47:03 +0000 (09:47 +0900)
Change-Id: I3cc20d07bce438fda15a982f72eb802f251ed295
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
packaging/tizen-core.spec

index c156947fdef64278ec21892e0befa604969122d2..987ca24a8901552dbde96c206280551a3508c3a0 100644 (file)
@@ -68,8 +68,10 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 export LD_LIBRARY_PATH="../../tizen_base"
 ctest --verbose %{?_smp_mflags}
 %if 0%{?gcov:1}
-zip -r tcore.zip tcore.out
-install -m 0644 tcore.zip %{buildroot}%{_datadir}/gcov/
+lcov -c --ignore-errors graph --no-external -b . -d . -o %{name}.info
+genhtml %{name}.info -o %{name}.out --legend --show-details
+zip -r %{name}.zip %{name}.out
+install -m 0644 %{name}.zip %{buildroot}%{_datadir}/gcov/
 %endif
 
 %install