Renaming tests binaries
authorKarol Pawlowski <k.pawlowski@samsung.com>
Mon, 18 Feb 2013 10:44:53 +0000 (11:44 +0100)
committerZbigniew Kostrzewa <z.kostrzewa@samsung.com>
Thu, 21 Feb 2013 08:31:34 +0000 (09:31 +0100)
[Issue#]        LINUXWRT-130
[Problem]       Tests binaries should be named <reponame>-tests-<name>
[Cause]         N/A
[Solution]      N/A
[Verification]  Build wrt-commons repository

Change-Id: I09e8be4b79dda7fe03818aeb869af3fb6fa73d74

80 files changed:
packaging/wrt-commons.spec
tests/CMakeLists.txt
tests/core/CMakeLists.txt [moved from tests/dpl/core/CMakeLists.txt with 55% similarity]
tests/core/DESCRIPTION [moved from tests/dpl/core/DESCRIPTION with 100% similarity]
tests/core/data/sample.zip [moved from tests/dpl/core/data/sample.zip with 100% similarity]
tests/core/main.cpp [moved from tests/dpl/utils/main.cpp with 100% similarity]
tests/core/test_address.cpp [moved from tests/dpl/core/test_address.cpp with 100% similarity]
tests/core/test_binary_queue.cpp [moved from tests/dpl/core/test_binary_queue.cpp with 100% similarity]
tests/core/test_fast_delegate.cpp [moved from tests/dpl/core/test_fast_delegate.cpp with 100% similarity]
tests/core/test_foreach.cpp [moved from tests/dpl/core/test_foreach.cpp with 100% similarity]
tests/core/test_log_unhandled_exception.cpp [moved from tests/dpl/core/test_log_unhandled_exception.cpp with 100% similarity]
tests/core/test_once.cpp [moved from tests/dpl/core/test_once.cpp with 100% similarity]
tests/core/test_scoped_array.cpp [moved from tests/dpl/core/test_scoped_array.cpp with 100% similarity]
tests/core/test_scoped_close.cpp [moved from tests/dpl/core/test_scoped_close.cpp with 100% similarity]
tests/core/test_scoped_fclose.cpp [moved from tests/dpl/core/test_scoped_fclose.cpp with 100% similarity]
tests/core/test_scoped_free.cpp [moved from tests/dpl/core/test_scoped_free.cpp with 100% similarity]
tests/core/test_scoped_ptr.cpp [moved from tests/dpl/core/test_scoped_ptr.cpp with 100% similarity]
tests/core/test_semaphore.cpp [moved from tests/dpl/core/test_semaphore.cpp with 100% similarity]
tests/core/test_serialization.cpp [moved from tests/dpl/core/test_serialization.cpp with 100% similarity]
tests/core/test_shared_ptr.cpp [moved from tests/dpl/core/test_shared_ptr.cpp with 100% similarity]
tests/core/test_string.cpp [moved from tests/dpl/core/test_string.cpp with 100% similarity]
tests/core/test_thread.cpp [moved from tests/dpl/core/test_thread.cpp with 100% similarity]
tests/core/test_type_list.cpp [moved from tests/dpl/core/test_type_list.cpp with 100% similarity]
tests/core/test_zip_input.cpp [moved from tests/dpl/core/test_zip_input.cpp with 100% similarity]
tests/dao/CMakeLists.txt
tests/db/CMakeLists.txt [moved from tests/dpl/db/CMakeLists.txt with 86% similarity]
tests/db/main.cpp [moved from tests/dpl/event/main.cpp with 100% similarity]
tests/db/orm/CMakeLists.txt [moved from tests/dpl/db/orm/CMakeLists.txt with 100% similarity]
tests/db/orm/dpl_orm_test_db [moved from tests/dpl/db/orm/dpl_orm_test_db with 100% similarity]
tests/db/orm/dpl_orm_test_db_definitions [moved from tests/dpl/db/orm/dpl_orm_test_db_definitions with 100% similarity]
tests/db/orm/dpl_orm_test_db_sql_generator.h [moved from tests/dpl/db/orm/dpl_orm_test_db_sql_generator.h with 100% similarity]
tests/db/orm/dpl_orm_test_db_sql_generator.h.gch [moved from tests/dpl/db/orm/dpl_orm_test_db_sql_generator.h.gch with 100% similarity]
tests/db/orm/generator_dpl_orm_test.h [moved from tests/dpl/db/orm/generator_dpl_orm_test.h with 100% similarity]
tests/db/test_orm.cpp [moved from tests/dpl/db/test_orm.cpp with 100% similarity]
tests/db/test_sql_connection.cpp [moved from tests/dpl/db/test_sql_connection.cpp with 100% similarity]
tests/dbus/CMakeLists.txt [moved from tests/dpl/dbus/CMakeLists.txt with 83% similarity]
tests/dbus/data/org.tizen.DBusTestService.service [new file with mode: 0644]
tests/dbus/dbus_test.cpp [moved from tests/dpl/dbus/dbus_test.cpp with 100% similarity]
tests/dbus/dbus_test.h [moved from tests/dpl/dbus/dbus_test.h with 100% similarity]
tests/dbus/main.cpp [moved from tests/dpl/dbus/main.cpp with 100% similarity]
tests/dbus/test_cases.cpp [moved from tests/dpl/dbus/test_cases.cpp with 100% similarity]
tests/dbus/test_service.cpp [moved from tests/dpl/dbus/test_service.cpp with 100% similarity]
tests/dpl/CMakeLists.txt [deleted file]
tests/dpl/README [deleted file]
tests/dpl/core/.swp [deleted file]
tests/dpl/dbus/data/org.tizen.DBusTestService.service [deleted file]
tests/event/CMakeLists.txt [moved from tests/dpl/event/CMakeLists.txt with 78% similarity]
tests/event/main.cpp [moved from tests/dpl/db/main.cpp with 100% similarity]
tests/event/test_controller.cpp [moved from tests/dpl/event/test_controller.cpp with 100% similarity]
tests/event/test_event_support.cpp [moved from tests/dpl/event/test_event_support.cpp with 100% similarity]
tests/event/test_ic_delegate.cpp [moved from tests/dpl/event/test_ic_delegate.cpp with 100% similarity]
tests/event/test_property.cpp [moved from tests/dpl/event/test_property.cpp with 100% similarity]
tests/files_localization/CMakeLists.txt [moved from tests/dpl/localization/CMakeLists.txt with 90% similarity]
tests/files_localization/files/CMakeLists.txt [moved from tests/dpl/localization/files/CMakeLists.txt with 100% similarity]
tests/files_localization/files/one [moved from tests/dpl/localization/files/one with 100% similarity]
tests/files_localization/files/two [moved from tests/dpl/localization/files/two with 100% similarity]
tests/files_localization/mockup_include/dpl/wrt-dao-ro/common_dao_types.h [moved from tests/dpl/localization/mockup_include/dpl/wrt-dao-ro/common_dao_types.h with 100% similarity]
tests/files_localization/mockup_include/dpl/wrt-dao-rw/widget_dao.h [moved from tests/dpl/localization/mockup_include/dpl/wrt-dao-rw/widget_dao.h with 100% similarity]
tests/files_localization/mockup_src/widget_dao.cpp [moved from tests/dpl/localization/mockup_src/widget_dao.cpp with 100% similarity]
tests/files_localization/test_localization.cpp [moved from tests/dpl/localization/test_localization.cpp with 100% similarity]
tests/files_localization/test_suite01.cpp [moved from tests/dpl/localization/test_suite01.cpp with 100% similarity]
tests/localizationTagsProvider/CMakeLists.txt [moved from tests/unit_tests/misc_unit/CMakeLists.txt with 76% similarity]
tests/localizationTagsProvider/Localization_testcases.cpp [moved from tests/unit_tests/misc_unit/Localization_testcases.cpp with 100% similarity]
tests/localizationTagsProvider/README [moved from tests/unit_tests/misc_unit/README with 100% similarity]
tests/localizationTagsProvider/tests_miscunit.cpp [moved from tests/unit_tests/misc_unit/tests_miscunit.cpp with 100% similarity]
tests/test/CMakeLists.txt [moved from tests/dpl/test/CMakeLists.txt with 88% similarity]
tests/test/main.cpp [moved from tests/dpl/test/main.cpp with 100% similarity]
tests/test/runner_child.cpp [moved from tests/dpl/test/runner_child.cpp with 100% similarity]
tests/unit_tests/CMakeLists.txt [deleted file]
tests/unused/test_caller.cpp [moved from tests/dpl/unused/test_caller.cpp with 100% similarity]
tests/unused/test_crypto_hash.cpp [moved from tests/dpl/unused/test_crypto_hash.cpp with 100% similarity]
tests/unused/test_message_queue.cpp [moved from tests/dpl/unused/test_message_queue.cpp with 100% similarity]
tests/unused/test_shm.cpp [moved from tests/dpl/unused/test_shm.cpp with 100% similarity]
tests/unused/test_sql_connection.cpp [moved from tests/dpl/unused/test_sql_connection.cpp with 100% similarity]
tests/unused/test_task.cpp [moved from tests/dpl/unused/test_task.cpp with 100% similarity]
tests/utils/CMakeLists.txt [moved from tests/dpl/utils/CMakeLists.txt with 83% similarity]
tests/utils/bash_utils.cpp [moved from tests/dpl/utils/bash_utils.cpp with 100% similarity]
tests/utils/main.cpp [moved from tests/dpl/core/main.cpp with 100% similarity]
tests/utils/widget_version.cpp [moved from tests/dpl/utils/widget_version.cpp with 100% similarity]
tests/utils/wrt_utility.cpp [moved from tests/dpl/utils/wrt_utility.cpp with 100% similarity]

index cf92fb0..e0008d9 100644 (file)
@@ -139,9 +139,7 @@ echo "[WRT] wrt-commons postinst done ..."
 %attr(755,root,root) %{_bindir}/wrt_commons_create_clean_db.sh
 %attr(755,root,root) %{_bindir}/wrt_commons_reset_db.sh
 %if %{with_tests}
-    %attr(755,root,root) %{_bindir}/dpl-tests-*
-    %attr(755,root,root) %{_bindir}/dpl-dbus-test-service
-    %attr(755,root,root) %{_bindir}/wrt-tests-*
+    %attr(755,root,root) %{_bindir}/wrt-commons-tests-*
     %attr(755,root,root) %{_bindir}/wrt_dao_tests_prepare_db.sh
     %{_datadir}/dbus-1/services/org.tizen.DBusTestService.service
     /opt/share/wrt/wrt-commons/tests/*
index 9a9007c..8ebf885 100644 (file)
@@ -11,9 +11,15 @@ WRT_ADD_INTERNAL_DEPENDENCIES(
   ${TARGET_DPL_TEST_ENGINE_EFL}
 )
 
+ADD_SUBDIRECTORY(core)
 ADD_SUBDIRECTORY(dao)
-ADD_SUBDIRECTORY(dpl)
-ADD_SUBDIRECTORY(unit_tests)
+ADD_SUBDIRECTORY(db)
+ADD_SUBDIRECTORY(dbus)
+ADD_SUBDIRECTORY(event)
+#ADD_SUBDIRECTORY(files_localization) TODO localization mockups need to be fixed
+ADD_SUBDIRECTORY(localizationTagsProvider)
+ADD_SUBDIRECTORY(utils)
+ADD_SUBDIRECTORY(test)
 
 # Rollback CXX flags
 #SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS_BACKUP})
\ No newline at end of file
similarity index 55%
rename from tests/dpl/core/CMakeLists.txt
rename to tests/core/CMakeLists.txt
index 48d2c93..9e7ffa4 100644 (file)
 # generating proper output files
 #
 
-SET(TARGET_NAME "dpl-tests-core")
+SET(TARGET_NAME "wrt-commons-tests-core")
 
 # Set DPL tests sources
 SET(DPL_TESTS_CORE_SOURCES
-    ${TESTS_DPL_DIR}/core/main.cpp
-    ${TESTS_DPL_DIR}/core/test_address.cpp
-    ${TESTS_DPL_DIR}/core/test_binary_queue.cpp
-    ${TESTS_DPL_DIR}/core/test_foreach.cpp
-    ${TESTS_DPL_DIR}/core/test_fast_delegate.cpp
-    ${TESTS_DPL_DIR}/core/test_log_unhandled_exception.cpp
-    ${TESTS_DPL_DIR}/core/test_once.cpp
-    ${TESTS_DPL_DIR}/core/test_serialization.cpp
-    ${TESTS_DPL_DIR}/core/test_scoped_array.cpp
-    ${TESTS_DPL_DIR}/core/test_scoped_close.cpp
-    ${TESTS_DPL_DIR}/core/test_scoped_fclose.cpp
-    ${TESTS_DPL_DIR}/core/test_scoped_free.cpp
-    ${TESTS_DPL_DIR}/core/test_scoped_ptr.cpp
-    ${TESTS_DPL_DIR}/core/test_semaphore.cpp
-    ${TESTS_DPL_DIR}/core/test_shared_ptr.cpp
-    ${TESTS_DPL_DIR}/core/test_string.cpp
-    ${TESTS_DPL_DIR}/core/test_thread.cpp
-    ${TESTS_DPL_DIR}/core/test_type_list.cpp
-    ${TESTS_DPL_DIR}/core/test_zip_input.cpp
+    ${TESTS_DIR}/core/main.cpp
+    ${TESTS_DIR}/core/test_address.cpp
+    ${TESTS_DIR}/core/test_binary_queue.cpp
+    ${TESTS_DIR}/core/test_foreach.cpp
+    ${TESTS_DIR}/core/test_fast_delegate.cpp
+    ${TESTS_DIR}/core/test_log_unhandled_exception.cpp
+    ${TESTS_DIR}/core/test_once.cpp
+    ${TESTS_DIR}/core/test_serialization.cpp
+    ${TESTS_DIR}/core/test_scoped_array.cpp
+    ${TESTS_DIR}/core/test_scoped_close.cpp
+    ${TESTS_DIR}/core/test_scoped_fclose.cpp
+    ${TESTS_DIR}/core/test_scoped_free.cpp
+    ${TESTS_DIR}/core/test_scoped_ptr.cpp
+    ${TESTS_DIR}/core/test_semaphore.cpp
+    ${TESTS_DIR}/core/test_shared_ptr.cpp
+    ${TESTS_DIR}/core/test_string.cpp
+    ${TESTS_DIR}/core/test_thread.cpp
+    ${TESTS_DIR}/core/test_type_list.cpp
+    ${TESTS_DIR}/core/test_zip_input.cpp
 )
 
 WRT_TEST_ADD_INTERNAL_DEPENDENCIES(${TARGET_NAME} ${TARGET_DPL_EFL})
@@ -56,6 +56,6 @@ WRT_TEST_BUILD(${TARGET_NAME} ${DPL_TESTS_CORE_SOURCES})
 WRT_TEST_INSTALL(${TARGET_NAME})
 
 INSTALL(FILES
-        ${TESTS_DPL_DIR}/core/data/sample.zip
+        ${TESTS_DIR}/core/data/sample.zip
         DESTINATION /opt/share/wrt/wrt-commons/tests/core
     )
similarity index 100%
rename from tests/dpl/utils/main.cpp
rename to tests/core/main.cpp
index 350431c..4028598 100644 (file)
 FILE(GLOB DAO_TESTS_SOURCES "${PROJECT_SOURCE_DIR}/tests/dao/*DAO.cpp")
 
 # target wrt-tests-dao
-SET(TARGET_DAO_TEST "wrt-tests-dao")
+SET(TARGET_DAO_TEST "wrt-commons-tests-dao")
 WRT_TEST_INCLUDE_DIRECTORIES(${TARGET_DAO_TEST} ${PROJECT_SOURCE_DIR}/modules/support/)
 WRT_TEST_ADD_INTERNAL_DEPENDENCIES(${TARGET_DAO_TEST} ${TARGET_WRT_DAO_RW_LIB} ${TARGET_CUSTOM_HANDLER_DAO_RW_LIB})
 WRT_TEST_BUILD(${TARGET_DAO_TEST} ${DAO_TESTS_SOURCES} tests_dao.cpp)
 WRT_TEST_INSTALL(${TARGET_DAO_TEST})
 
-
 # common installed files
 INSTALL(PROGRAMS
     ${PROJECT_SOURCE_DIR}/tests/dao/wrt_dao_tests_prepare_db.sh
similarity index 86%
rename from tests/dpl/db/CMakeLists.txt
rename to tests/db/CMakeLists.txt
index f4b5c22..837679e 100644 (file)
 # generating proper output files
 #
 
-SET(TARGET_NAME "dpl-tests-db")
+SET(TARGET_NAME "wrt-commons-tests-db")
 
 # Set DPL tests sources
 SET(DPL_TESTS_DB_SOURCES
-    ${TESTS_DPL_DIR}/db/main.cpp
-    ${TESTS_DPL_DIR}/db/test_orm.cpp
-    ${TESTS_DPL_DIR}/db/test_sql_connection.cpp
+    ${TESTS_DIR}/db/main.cpp
+    ${TESTS_DIR}/db/test_orm.cpp
+    ${TESTS_DIR}/db/test_sql_connection.cpp
 )
 
 ADD_SUBDIRECTORY(orm)
@@ -44,6 +44,6 @@ WRT_TEST_BUILD(${TARGET_NAME} ${DPL_TESTS_DB_SOURCES})
 WRT_TEST_INSTALL(${TARGET_NAME})
 
 INSTALL(FILES
-        ${TESTS_DPL_DIR}/db/orm/dpl_orm_test.db
+        ${TESTS_DIR}/db/orm/dpl_orm_test.db
         DESTINATION /opt/share/wrt/wrt-commons/tests/db
 )
similarity index 100%
rename from tests/dpl/event/main.cpp
rename to tests/db/main.cpp
similarity index 83%
rename from tests/dpl/dbus/CMakeLists.txt
rename to tests/dbus/CMakeLists.txt
index 066ad79..4a1f338 100644 (file)
 
 INCLUDE(FindPkgConfig)
 
-PKG_CHECK_MODULES(DEPENDENCIES gthread-2.0 REQUIRED) 
+PKG_CHECK_MODULES(DEPENDENCIES gthread-2.0 REQUIRED)
 
-SET(TARGET_DBUS_TESTS "dpl-tests-dbus")
-SET(TARGET_DBUS_TEST_SERVICE "dpl-dbus-test-service")
+SET(TARGET_DBUS_TESTS "wrt-commons-tests-dbus")
+SET(TARGET_DBUS_TEST_SERVICE "wrt-commons-tests-dbus-test-service")
 
 SET(DBUS_TESTS_SRCS
-    ${TESTS_DPL_DIR}/dbus/main.cpp
-    ${TESTS_DPL_DIR}/dbus/test_cases.cpp
-    ${TESTS_DPL_DIR}/dbus/dbus_test.cpp
+    ${TESTS_DIR}/dbus/main.cpp
+    ${TESTS_DIR}/dbus/test_cases.cpp
+    ${TESTS_DIR}/dbus/dbus_test.cpp
     ${TESTS_COMMON_DIR}/src/loop_control.cpp
 )
 
 SET(DBUS_TEST_SERVICE_SRCS
-    ${TESTS_DPL_DIR}/dbus/test_service.cpp
+    ${TESTS_DIR}/dbus/test_service.cpp
     ${TESTS_COMMON_DIR}/src/loop_control.cpp
 )
 
@@ -58,6 +58,6 @@ WRT_TEST_BUILD(${TARGET_DBUS_TEST_SERVICE} ${DBUS_TEST_SERVICE_SRCS})
 WRT_TEST_INSTALL(${TARGET_DBUS_TEST_SERVICE})
 
 INSTALL(FILES
-        ${TESTS_DPL_DIR}/dbus/data/org.tizen.DBusTestService.service
+        ${TESTS_DIR}/dbus/data/org.tizen.DBusTestService.service
         DESTINATION /usr/share/dbus-1/services
 )
diff --git a/tests/dbus/data/org.tizen.DBusTestService.service b/tests/dbus/data/org.tizen.DBusTestService.service
new file mode 100644 (file)
index 0000000..94b3d67
--- /dev/null
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.tizen.DBusTestService
+Exec=/usr/bin/wrt-commons-tests-dbus-test-service
similarity index 100%
rename from tests/dpl/dbus/main.cpp
rename to tests/dbus/main.cpp
diff --git a/tests/dpl/CMakeLists.txt b/tests/dpl/CMakeLists.txt
deleted file mode 100644 (file)
index 1dea774..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-#
-#    Licensed under the Apache License, Version 2.0 (the "License");
-#    you may not use this file except in compliance with the License.
-#    You may obtain a copy of the License at
-#
-#        http://www.apache.org/licenses/LICENSE-2.0
-#
-#    Unless required by applicable law or agreed to in writing, software
-#    distributed under the License is distributed on an "AS IS" BASIS,
-#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#    See the License for the specific language governing permissions and
-#    limitations under the License.
-#
-# @file        CMakeLists.txt
-# @author      Krzysztof Jackiewicz (k.jackiewicz@samsung.com)
-# @version     1.0
-# @brief
-#
-
-SET(TESTS_DPL_DIR "${TESTS_DIR}/dpl")
-
-ADD_SUBDIRECTORY(core)
-ADD_SUBDIRECTORY(db)
-ADD_SUBDIRECTORY(dbus)
-ADD_SUBDIRECTORY(event)
-#ADD_SUBDIRECTORY(localization) TODO localization mockups need to be fixed 
-ADD_SUBDIRECTORY(utils)
-ADD_SUBDIRECTORY(test)
diff --git a/tests/dpl/README b/tests/dpl/README
deleted file mode 100644 (file)
index 6641953..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-Unit tests for dpl library functionality.
-There are 6 binaries: dpl-dbus-test-service, dpl-tests-core, dpl-tests-db,
-dpl-tests-dbus, dpl-tests-event, dpl-tests-utils.
-All binaries are using our test framework - it allows to use different types of
-output. Text output shows results on console - green passed.
-To run:
-1. Install wrt-extra on target
-2. Run for f in /usr/bin/dpl-tests-*; do $f --output=text; done
-
-Automatic: YES
-Included in Daily Build: YES (http://build01.sprc.samsung.pl/browse/LINUXNGWAP-INT)
-Included in Gerrit Builds: YES (http://build01.sprc.samsung.pl/browse/LINUXNGWAP-GERRIT)
-Number of test cases: 151
\ No newline at end of file
diff --git a/tests/dpl/core/.swp b/tests/dpl/core/.swp
deleted file mode 100644 (file)
index e25a05b..0000000
Binary files a/tests/dpl/core/.swp and /dev/null differ
diff --git a/tests/dpl/dbus/data/org.tizen.DBusTestService.service b/tests/dpl/dbus/data/org.tizen.DBusTestService.service
deleted file mode 100644 (file)
index f024543..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-[D-BUS Service]
-Name=org.tizen.DBusTestService
-Exec=/usr/bin/dpl-dbus-test-service
similarity index 78%
rename from tests/dpl/event/CMakeLists.txt
rename to tests/event/CMakeLists.txt
index de3db4a..08fa4fa 100644 (file)
 # generating proper output files
 #
 
-SET(TARGET_NAME "dpl-tests-event")
+SET(TARGET_NAME "wrt-commons-tests-event")
 
 # Set DPL tests sources
 SET(DPL_TESTS_EVENT_SOURCES
-    ${TESTS_DPL_DIR}/event/main.cpp
-    ${TESTS_DPL_DIR}/event/test_controller.cpp
-    ${TESTS_DPL_DIR}/event/test_event_support.cpp
-    ${TESTS_DPL_DIR}/event/test_ic_delegate.cpp
-    ${TESTS_DPL_DIR}/event/test_property.cpp
+    ${TESTS_DIR}/event/main.cpp
+    ${TESTS_DIR}/event/test_controller.cpp
+    ${TESTS_DIR}/event/test_event_support.cpp
+    ${TESTS_DIR}/event/test_ic_delegate.cpp
+    ${TESTS_DIR}/event/test_property.cpp
 )
 
 WRT_TEST_ADD_INTERNAL_DEPENDENCIES(${TARGET_NAME} ${TARGET_DPL_EVENT_EFL})
similarity index 100%
rename from tests/dpl/db/main.cpp
rename to tests/event/main.cpp
similarity index 90%
rename from tests/dpl/localization/CMakeLists.txt
rename to tests/files_localization/CMakeLists.txt
index a50727a..37d79c1 100644 (file)
 # generating proper output files
 #
 
-SET(TARGET_LOC "dpl-tests-loc")
+SET(TARGET_LOC "wrt-commons-tests-loc")
 
 SET(LOC_TESTS_SOURCES
-    ${DPL_TESTS_DIR}/localization/test_localization.cpp
-    ${DPL_TESTS_DIR}/localization/test_suite01.cpp
+    ${TESTS_DIR}/files_localization/test_localization.cpp
+    ${TESTS_DIR}/files_localization/test_suite01.cpp
     #${DPL_TESTS_DIR}/localization/mockup_src/widget_dao.cpp
     #${PROJECT_SOURCE_DIR}/modules/localization/src/localization_utils.cpp
     #${PROJECT_SOURCE_DIR}/modules/localization/src/w3c_file_localization.cpp
similarity index 76%
rename from tests/unit_tests/misc_unit/CMakeLists.txt
rename to tests/localizationTagsProvider/CMakeLists.txt
index 8429573..fb3fee7 100644 (file)
@@ -19,7 +19,7 @@
 # @brief
 #
 
-SET(MISCUNIT_TESTS_DIR ${CMAKE_CURRENT_SOURCE_DIR})
+SET(LOCALIZATION_TESTS_DIR ${CMAKE_CURRENT_SOURCE_DIR})
 
 PKG_CHECK_MODULES(TEST_PKGS
     vconf
@@ -34,10 +34,9 @@ WRT_INCLUDE_DIRECTORIES(
 WRT_LINK_DIRECTORIES(${TEST_PKGS_LIBRARY_DIRS})
 WRT_TARGET_LINK_LIBRARIES(${TEST_PKGS_LIBRARIES})
 
-FILE(GLOB MISCUNIT_TESTS_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*testcases.cpp")
+FILE(GLOB LOCALIZATION_TESTS_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*testcases.cpp")
 
-# target wrt-test-miscunit
-SET(TARGET_MISCUNIT_TEST "wrt-tests-localization")
-WRT_TEST_BUILD(${TARGET_MISCUNIT_TEST} ${MISCUNIT_TESTS_SOURCES} tests_miscunit.cpp)
-WRT_TEST_INSTALL(${TARGET_MISCUNIT_TEST})
+SET(TARGET_LOCALIZATION_TEST "wrt-commons-tests-localization")
+WRT_TEST_BUILD(${TARGET_LOCALIZATION_TEST} ${LOCALIZATION_TESTS_SOURCES} tests_miscunit.cpp)
+WRT_TEST_INSTALL(${TARGET_LOCALIZATION_TEST})
 
similarity index 88%
rename from tests/dpl/test/CMakeLists.txt
rename to tests/test/CMakeLists.txt
index 6e34912..1c0bf55 100644 (file)
 # @brief
 #
 
-SET(TARGET_NAME "dpl-tests-test")
+SET(TARGET_NAME "wrt-commons-tests-test-runner-child")
 
 # Set DPL tests sources
 SET(DPL_TESTS_UTIL_SOURCES
-    ${TESTS_DPL_DIR}/test/main.cpp
-    ${TESTS_DPL_DIR}/test/runner_child.cpp
+    ${TESTS_DIR}/test/main.cpp
+    ${TESTS_DIR}/test/runner_child.cpp
 )
 
 #WRT_TEST_ADD_INTERNAL_DEPENDENCIES(${TARGET_NAME} ${TARGET_DPL_UTILS_EFL})
similarity index 100%
rename from tests/dpl/test/main.cpp
rename to tests/test/main.cpp
diff --git a/tests/unit_tests/CMakeLists.txt b/tests/unit_tests/CMakeLists.txt
deleted file mode 100644 (file)
index 9dfb50f..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-# Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-#
-#    Licensed under the Apache License, Version 2.0 (the "License");
-#    you may not use this file except in compliance with the License.
-#    You may obtain a copy of the License at
-#
-#        http://www.apache.org/licenses/LICENSE-2.0
-#
-#    Unless required by applicable law or agreed to in writing, software
-#    distributed under the License is distributed on an "AS IS" BASIS,
-#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#    See the License for the specific language governing permissions and
-#    limitations under the License.
-#
-# @file        CMakeLists.txt
-# @author      Lukasz Marek (l.marek@samsung.com)
-#
-
-ADD_SUBDIRECTORY(misc_unit)
similarity index 83%
rename from tests/dpl/utils/CMakeLists.txt
rename to tests/utils/CMakeLists.txt
index b3ce494..9898084 100644 (file)
 # @brief
 #
 
-SET(TARGET_NAME "dpl-tests-utils")
+SET(TARGET_NAME "wrt-commons-tests-utils")
 
 # Set DPL tests sources
 SET(DPL_TESTS_UTIL_SOURCES
-    ${TESTS_DPL_DIR}/utils/main.cpp
-    ${TESTS_DPL_DIR}/utils/widget_version.cpp
-    ${TESTS_DPL_DIR}/utils/bash_utils.cpp
-    ${TESTS_DPL_DIR}/utils/wrt_utility.cpp
+    ${TESTS_DIR}/utils/main.cpp
+    ${TESTS_DIR}/utils/widget_version.cpp
+    ${TESTS_DIR}/utils/bash_utils.cpp
+    ${TESTS_DIR}/utils/wrt_utility.cpp
 )
 
 #WRT_TEST_ADD_INTERNAL_DEPENDENCIES(${TARGET_NAME} ${TARGET_DPL_UTILS_EFL})
similarity index 100%
rename from tests/dpl/core/main.cpp
rename to tests/utils/main.cpp