Change the unittest name and path 17/270717/2
authorInHong Han <inhong1.han@samsung.com>
Tue, 8 Feb 2022 04:39:55 +0000 (13:39 +0900)
committerInHong Han <inhong1.han@samsung.com>
Tue, 8 Feb 2022 04:59:25 +0000 (13:59 +0900)
Change-Id: I3ae769c541d6c464cc683bf47aab516428d686b3

CMakeLists.txt
packaging/capi-ui-inputmethod.spec
tests/CMakeLists.txt

index 2bc4ecb31cbee5f70c851a34f323ec7cc2f8a255..365954a47ae09f83f62d75200483fcb288f77683 100644 (file)
@@ -183,7 +183,7 @@ ENDIF(UNIX)
 ## Test
 IF(NOT DEFINED MINIMUM_BUILD)
 ENABLE_TESTING()
-SET(UNITTEST_INPUTMETHOD inputmethod_unittests)
+SET(UNITTEST_INPUTMETHOD capi-ui-inputmethod_gtest)
 ADD_TEST(NAME ${UNITTEST_INPUTMETHOD} COMMAND ${UNITTEST_INPUTMETHOD}
                         WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests)
 
index d03d6771bdbd7238ff5f6b093e685ff0a39c3c4c..788730ae59487c37511645b131c5cd488eff5196 100644 (file)
@@ -151,4 +151,4 @@ install -m 0644 %{name}.zip %{buildroot}%{_datadir}/gcov/
 %endif
 
 %files unittests
-%{_bindir}/*
+%{_libdir}/%{name}/unittest/*
index b18ecd7ffd7a9ed290a414b8e65426e26ec6ba8a..b4d722f2793438fbd98c22d29ce2a8a344bf0878 100644 (file)
@@ -1,5 +1,5 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT(gtest-inputmethod CXX)
+PROJECT(inputmethod_gtest CXX)
 
 # Find Packages
 INCLUDE(FindPkgConfig)
@@ -52,4 +52,4 @@ SET_TARGET_PROPERTIES(${UNITTEST_INPUTMETHOD} PROPERTIES
 --wrap=cynara_finish,\
 --wrap=cynara_session_from_pid,\
 --wrap=cynara_check")
-INSTALL(TARGETS ${UNITTEST_INPUTMETHOD} DESTINATION /usr/bin)
+INSTALL(TARGETS ${UNITTEST_INPUTMETHOD} DESTINATION ${LIBDIR}/capi-ui-inputmethod/unittest)