Move unittest to tests folder 31/239231/1
authormk5004.lee <mk5004.lee@samsung.com>
Thu, 23 Jul 2020 02:49:01 +0000 (11:49 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Thu, 23 Jul 2020 02:49:01 +0000 (11:49 +0900)
Change-Id: I15d688766765bc3775cf538387c2c99e135fc72e
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
28 files changed:
CMakeLists.txt
tests/CMakeLists.txt [new file with mode: 0644]
tests/mock/app_common.h [moved from mock/app_common.h with 100% similarity]
tests/mock/fff.h [moved from mock/fff.h with 100% similarity]
tests/mock/gio_mock.h [moved from mock/gio_mock.h with 100% similarity]
tests/mock/mock.cc [moved from mock/mock.cc with 100% similarity]
tests/mock/mock.h [moved from mock/mock.h with 100% similarity]
tests/mock/security_manager_mock.h [moved from mock/security_manager_mock.h with 100% similarity]
tests/mock/smack_mock.h [moved from mock/smack_mock.h with 100% similarity]
tests/mock/tzplatform_config_mock.h [moved from mock/tzplatform_config_mock.h with 100% similarity]
tests/unittest/CMakeLists.txt [moved from unittest/CMakeLists.txt with 85% similarity]
tests/unittest/src/test_main.cc [moved from unittest/src/test_main.cc with 100% similarity]
tests/unittest/src/test_noti_ex_abstract_item.cc [moved from unittest/src/test_noti_ex_abstract_item.cc with 100% similarity]
tests/unittest/src/test_noti_ex_app_control_action.cc [moved from unittest/src/test_noti_ex_app_control_action.cc with 100% similarity]
tests/unittest/src/test_noti_ex_button_item.cc [moved from unittest/src/test_noti_ex_button_item.cc with 100% similarity]
tests/unittest/src/test_noti_ex_chat_message_item.cc [moved from unittest/src/test_noti_ex_chat_message_item.cc with 100% similarity]
tests/unittest/src/test_noti_ex_checkbox_item.cc [moved from unittest/src/test_noti_ex_checkbox_item.cc with 100% similarity]
tests/unittest/src/test_noti_ex_entry_item.cc [moved from unittest/src/test_noti_ex_entry_item.cc with 100% similarity]
tests/unittest/src/test_noti_ex_event_info.cc [moved from unittest/src/test_noti_ex_event_info.cc with 100% similarity]
tests/unittest/src/test_noti_ex_group_item.cc [moved from unittest/src/test_noti_ex_group_item.cc with 100% similarity]
tests/unittest/src/test_noti_ex_icon_item.cc [moved from unittest/src/test_noti_ex_icon_item.cc with 100% similarity]
tests/unittest/src/test_noti_ex_image_item.cc [moved from unittest/src/test_noti_ex_image_item.cc with 100% similarity]
tests/unittest/src/test_noti_ex_input_selector_item.cc [moved from unittest/src/test_noti_ex_input_selector_item.cc with 100% similarity]
tests/unittest/src/test_noti_ex_progress_item.cc [moved from unittest/src/test_noti_ex_progress_item.cc with 100% similarity]
tests/unittest/src/test_noti_ex_shared_file.cc [moved from unittest/src/test_noti_ex_shared_file.cc with 100% similarity]
tests/unittest/src/test_noti_ex_text_item.cc [moved from unittest/src/test_noti_ex_text_item.cc with 100% similarity]
tests/unittest/src/test_noti_ex_time_item.cc [moved from unittest/src/test_noti_ex_time_item.cc with 100% similarity]
tests/unittest/src/test_noti_ex_visibility_action.cc [moved from unittest/src/test_noti_ex_visibility_action.cc with 100% similarity]

index 90ed25c..ddf7544 100644 (file)
@@ -1,11 +1,6 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
 
-ENABLE_TESTING()
-SET(NOTIFICATION_UNIT_TESTS notification-ex_unittests)
-ADD_TEST(NAME ${NOTIFICATION_UNIT_TESTS} COMMAND ${NOTIFICATION_UNIT_TESTS})
-
 ADD_SUBDIRECTORY(notification)
 ADD_SUBDIRECTORY(notification-ex)
-ADD_SUBDIRECTORY(unittest)
+ADD_SUBDIRECTORY(tests)
 
-ADD_DEPENDENCIES(notification-ex_unittests notification-ex)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644 (file)
index 0000000..6b60f04
--- /dev/null
@@ -0,0 +1,6 @@
+ENABLE_TESTING()
+SET(NOTIFICATION_UNIT_TESTS notification-ex_unittests)
+ADD_TEST(NAME ${NOTIFICATION_UNIT_TESTS} COMMAND ${NOTIFICATION_UNIT_TESTS})
+
+ADD_SUBDIRECTORY(unittest)
+ADD_DEPENDENCIES(notification-ex_unittests notification-ex)
similarity index 100%
rename from mock/app_common.h
rename to tests/mock/app_common.h
similarity index 100%
rename from mock/fff.h
rename to tests/mock/fff.h
similarity index 100%
rename from mock/gio_mock.h
rename to tests/mock/gio_mock.h
similarity index 100%
rename from mock/mock.cc
rename to tests/mock/mock.cc
similarity index 100%
rename from mock/mock.h
rename to tests/mock/mock.h
similarity index 100%
rename from mock/smack_mock.h
rename to tests/mock/smack_mock.h
similarity index 85%
rename from unittest/CMakeLists.txt
rename to tests/unittest/CMakeLists.txt
index afbc3ba..5d23946 100644 (file)
@@ -22,14 +22,15 @@ SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
 SET(CMAKE_CXX_FLAGS_RELEASE "-O2")
 
 INCLUDE_DIRECTORIES(
-    ${CMAKE_SOURCE_DIR}/notification-ex
-    ${CMAKE_SOURCE_DIR}/notification-ex/api
-    ${CMAKE_SOURCE_DIR}/mock
     ${CMAKE_SOURCE_DIR}/
+    ${CMAKE_SOURCE_DIR}/notification-ex/
+    ${CMAKE_SOURCE_DIR}/notification-ex/api
+    ${CMAKE_CURRENT_SOURCE_DIR}/../
+    ${CMAKE_CURRENT_SOURCE_DIR}/../mock
 )
 
 AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/src SOURCES)
-AUX_SOURCE_DIRECTORY(${CMAKE_SOURCE_DIR}/mock MOCK_SOURCES)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../mock MOCK_SOURCES)
 AUX_SOURCE_DIRECTORY(${CMAKE_SOURCE_DIR}/notification-ex NOTIFICATION_EX_SOURCES)
 ADD_EXECUTABLE(${PROJECT_NAME}
     ${SOURCES}