Change-Id: I070ebfca72abf5cae5c582a1ece1d060c659e1e4
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
%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