From 21414bdf1da3ec0062c39c450a75e46832b8391d Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 25 Mar 2021 13:47:21 +0900 Subject: [PATCH] Fix issue no executable is included in unittest package Change-Id: I165bccf668b16f8e644f0f2892ef72413fd121e5 Signed-off-by: Jihoon Kim --- CMakeLists.txt | 2 +- packaging/capi-ui-sticker.spec | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 916ce15..7da1298 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,11 +55,11 @@ 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) ADD_SUBDIRECTORY(tests) -ENDIF() ## config ## INSTALL(FILES ${CMAKE_SOURCE_DIR}/capi-ui-sticker.info DESTINATION ${TZ_SYS_RO_SHARE}/parser-plugins) diff --git a/packaging/capi-ui-sticker.spec b/packaging/capi-ui-sticker.spec index 2210fec..6855dba 100644 --- a/packaging/capi-ui-sticker.spec +++ b/packaging/capi-ui-sticker.spec @@ -213,7 +213,8 @@ chsmack -a "User::App::Shared" /opt/usr/share/sticker-data %endif %files unittests -%{_bindir}/* +%license LICENSE +%{_bindir}/sticker_unittests %if 0%{?gcov:1} %files gcov -- 2.7.4