ENDIF()
## Test
-IF("${TEST_ENABLE}" STREQUAL "true")
ENABLE_TESTING()
-ENDIF()
SET(UTC_STICKER sticker_unittests)
ADD_TEST(NAME ${UTC_STICKER} COMMAND ${UTC_STICKER}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests)
%endif
-DCMAKE_INSTALL_PREFIX=/usr -DLIBDIR=%{_libdir} -DBINDIR=%{_bindir} -DINCLUDEDIR=%{_includedir} \
-DTZ_SYS_RO_SHARE=%TZ_SYS_RO_SHARE -DTZ_SYS_BIN=%TZ_SYS_BIN -DTZ_USER_SHARE=%TZ_USER_SHARE \
- -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \
-%if %{defined _ctest_enable}
- -DTEST_ENABLE="%{_ctest_enable}" \
-%else
- -DTEST_ENABLE="false" \
-%endif
+ -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
make %{?jobs:-j%jobs}
%endif
%check
-%if "%{_ctest_enable}" == "true"
-ctest --output-on-failure %{?_smp_mflags}
-%endif
-
%if 0%{?gcov:1}
-lcov -c --ignore-errors graph --no-external -q -d . -o gcov.info
-genhtml gcov.info
+ctest --output-on-failure %{?_smp_mflags}
+lcov -c --ignore-errors graph --no-external -q -d . -o capi-ui-sticker.info
+genhtml capi-ui-sticker.info -o capi-ui-sticker.out
+zip -r capi-ui-sticker.zip capi-ui-sticker.out capi-ui-sticker.info
+install -m 0644 capi-ui-sticker.zip %{buildroot}%{_datadir}/gcov
%endif
%post