%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/*
${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
# 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})
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
)
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
# 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)
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
)
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
)
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
)
--- /dev/null
+[D-BUS Service]
+Name=org.tizen.DBusTestService
+Exec=/usr/bin/wrt-commons-tests-dbus-test-service
+++ /dev/null
-# 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)
+++ /dev/null
-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
+++ /dev/null
-[D-BUS Service]
-Name=org.tizen.DBusTestService
-Exec=/usr/bin/dpl-dbus-test-service
# 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})
# 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
# @brief
#
-SET(MISCUNIT_TESTS_DIR ${CMAKE_CURRENT_SOURCE_DIR})
+SET(LOCALIZATION_TESTS_DIR ${CMAKE_CURRENT_SOURCE_DIR})
PKG_CHECK_MODULES(TEST_PKGS
vconf
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})
# @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})
+++ /dev/null
-# 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)
# @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})