From 0ecb703e2b2cdd5253bacc9899ba5e1de856042e Mon Sep 17 00:00:00 2001 From: InHong Han Date: Tue, 8 Feb 2022 13:39:55 +0900 Subject: [PATCH] Change the unittest name and path Change-Id: I3ae769c541d6c464cc683bf47aab516428d686b3 --- CMakeLists.txt | 2 +- packaging/capi-ui-inputmethod.spec | 2 +- tests/CMakeLists.txt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2bc4ecb..365954a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/packaging/capi-ui-inputmethod.spec b/packaging/capi-ui-inputmethod.spec index d03d677..788730a 100644 --- a/packaging/capi-ui-inputmethod.spec +++ b/packaging/capi-ui-inputmethod.spec @@ -151,4 +151,4 @@ install -m 0644 %{name}.zip %{buildroot}%{_datadir}/gcov/ %endif %files unittests -%{_bindir}/* +%{_libdir}/%{name}/unittest/* diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b18ecd7..b4d722f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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) -- 2.34.1