Add unittest html result in gcov package 37/257437/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 26 Apr 2021 04:36:14 +0000 (13:36 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 26 Apr 2021 04:36:14 +0000 (13:36 +0900)
Change-Id: I070ebfca72abf5cae5c582a1ece1d060c659e1e4
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
packaging/capi-ui-autofill.spec

index d4344a8..c1b7228 100644 (file)
@@ -155,12 +155,12 @@ tar xf %{name}-gcov.tar -C %{buildroot}%{_datadir}/gcov/obj
 %endif
 
 %check
-%if "%{_ctest_enable}" == "true"
-ctest --output-on-failure %{?_smp_mflags}
 %if 0%{?gcov:1}
-lcov -c --ignore-errors graph --no-external -q -d . -o gcov.info
-genhtml gcov.info
-%endif
+ctest --output-on-failure %{?_smp_mflags}
+lcov -c --ignore-errors graph --no-external -q -d . -o %{name}.info
+genhtml %{name}.info -o %{name}.out
+zip -r %{name}.zip %{name}.out %{name}.info
+install -m 0644 %{name}.zip %{buildroot}%{_datadir}/gcov/
 %endif
 
 %post