Renaming tests binaries
authorKarol Pawlowski <k.pawlowski@samsung.com>
Mon, 18 Feb 2013 10:52:19 +0000 (11:52 +0100)
committerKarol Pawlowski <k.pawlowski@samsung.com>
Tue, 19 Feb 2013 12:24:56 +0000 (13:24 +0100)
[Issue#]        LINUXWRT-130
[Problem]       Tests binaries should be named <reponame>-tests-<name>
[Cause]         N/A
[Solution]      N/A
[Verification]  Build wrt-installer repository

Change-Id: Id2be8379b7f034e3f62b91b6c6456b78fbe6412c

57 files changed:
packaging/wrt-installer.spec
tests/CMakeLists.txt
tests/general/CMakeLists.txt [moved from tests/system_tests/CMakeLists.txt with 87% similarity]
tests/general/CMakeUtils.txt [moved from tests/system_tests/CMakeUtils.txt with 100% similarity]
tests/general/TestCases.cpp [moved from tests/system_tests/TestCases.cpp with 100% similarity]
tests/general/TestInit.cpp [moved from tests/system_tests/TestInit.cpp with 100% similarity]
tests/general/common/CMakeLists.txt [moved from tests/system_tests/common/CMakeLists.txt with 100% similarity]
tests/general/common/include/InstallerWrapper.h [moved from tests/system_tests/common/include/InstallerWrapper.h with 84% similarity]
tests/general/common/include/ManifestFile.h [moved from tests/system_tests/common/include/ManifestFile.h with 86% similarity]
tests/general/common/src/InstallerWrapper.cpp [moved from tests/system_tests/common/src/InstallerWrapper.cpp with 100% similarity]
tests/general/common/src/ManifestFile.cpp [moved from tests/system_tests/common/src/ManifestFile.cpp with 100% similarity]
tests/general/widgets/bg-00-with_bg.wgt [moved from tests/system_tests/widgets/bg-00-with_bg.wgt with 100% similarity]
tests/general/widgets/bg-01-missing_file.wgt [moved from tests/system_tests/widgets/bg-01-missing_file.wgt with 100% similarity]
tests/general/widgets/bg-02-without_bg.wgt [moved from tests/system_tests/widgets/bg-02-without_bg.wgt with 100% similarity]
tests/general/widgets/content_listener.wgt [moved from tests/system_tests/widgets/content_listener.wgt with 100% similarity]
tests/general/widgets/content_listener/config.xml [moved from tests/system_tests/widgets/content_listener/config.xml with 100% similarity]
tests/general/widgets/content_listener/hook.js [moved from tests/system_tests/widgets/content_listener2/hook.js with 100% similarity]
tests/general/widgets/content_listener/index.html [moved from tests/system_tests/widgets/content_listener2/index.html with 100% similarity]
tests/general/widgets/content_listener/test.html [moved from tests/system_tests/widgets/content_listener2/test.html with 100% similarity]
tests/general/widgets/content_listener2.wgt [moved from tests/system_tests/widgets/content_listener2.wgt with 100% similarity]
tests/general/widgets/content_listener2/config.xml [moved from tests/system_tests/widgets/content_listener2/config.xml with 100% similarity]
tests/general/widgets/content_listener2/hook.js [moved from tests/system_tests/widgets/content_listener/hook.js with 100% similarity]
tests/general/widgets/content_listener2/index.html [moved from tests/system_tests/widgets/content_listener/index.html with 100% similarity]
tests/general/widgets/content_listener2/test.html [moved from tests/system_tests/widgets/content_listener/test.html with 100% similarity]
tests/general/widgets/inst_nplug_1.wgt [moved from tests/system_tests/widgets/inst_nplug_1.wgt with 100% similarity]
tests/general/widgets/inst_nplug_2.wgt [moved from tests/system_tests/widgets/inst_nplug_2.wgt with 100% similarity]
tests/general/widgets/inst_nplug_3.wgt [moved from tests/system_tests/widgets/inst_nplug_3.wgt with 100% similarity]
tests/general/widgets/inst_nplug_4.wgt [moved from tests/system_tests/widgets/inst_nplug_4.wgt with 100% similarity]
tests/general/widgets/manifest.wgt [moved from tests/system_tests/widgets/manifest.wgt with 100% similarity]
tests/general/widgets/minimal.wgt [moved from tests/system_tests/widgets/minimal.wgt with 100% similarity]
tests/general/widgets/nonroot.wgt [moved from tests/system_tests/widgets/nonroot.wgt with 100% similarity]
tests/general/widgets/protocol_listener.wgt [moved from tests/system_tests/widgets/protocol_listener.wgt with 100% similarity]
tests/general/widgets/protocol_listener/config.xml [moved from tests/system_tests/widgets/protocol_listener/config.xml with 100% similarity]
tests/general/widgets/protocol_listener/hook.js [moved from tests/system_tests/widgets/protocol_listener2/hook.js with 100% similarity]
tests/general/widgets/protocol_listener/index.html [moved from tests/system_tests/widgets/protocol_listener2/index.html with 100% similarity]
tests/general/widgets/protocol_listener/news.html [moved from tests/system_tests/widgets/protocol_listener2/news.html with 100% similarity]
tests/general/widgets/protocol_listener2.wgt [moved from tests/system_tests/widgets/protocol_listener2.wgt with 100% similarity]
tests/general/widgets/protocol_listener2/config.xml [moved from tests/system_tests/widgets/protocol_listener2/config.xml with 100% similarity]
tests/general/widgets/protocol_listener2/hook.js [moved from tests/system_tests/widgets/protocol_listener/hook.js with 100% similarity]
tests/general/widgets/protocol_listener2/index.html [moved from tests/system_tests/widgets/protocol_listener/index.html with 100% similarity]
tests/general/widgets/protocol_listener2/news.html [moved from tests/system_tests/widgets/protocol_listener/news.html with 100% similarity]
tests/general/widgets/register_content.wgt [moved from tests/system_tests/widgets/register_content.wgt with 100% similarity]
tests/general/widgets/register_content/config.xml [moved from tests/system_tests/widgets/register_content/config.xml with 100% similarity]
tests/general/widgets/register_content/hook.js [moved from tests/system_tests/widgets/register_content/hook.js with 100% similarity]
tests/general/widgets/register_content/index.html [moved from tests/system_tests/widgets/register_protocol_fail/index.html with 100% similarity]
tests/general/widgets/register_content_fail.wgt [moved from tests/system_tests/widgets/register_content_fail.wgt with 100% similarity]
tests/general/widgets/register_content_fail/config.xml [moved from tests/system_tests/widgets/register_content_fail/config.xml with 100% similarity]
tests/general/widgets/register_content_fail/hook.js [moved from tests/system_tests/widgets/register_content_fail/hook.js with 100% similarity]
tests/general/widgets/register_content_fail/index.html [moved from tests/system_tests/widgets/register_protocol/index.html with 100% similarity]
tests/general/widgets/register_protocol.wgt [moved from tests/system_tests/widgets/register_protocol.wgt with 100% similarity]
tests/general/widgets/register_protocol/config.xml [moved from tests/system_tests/widgets/register_protocol/config.xml with 100% similarity]
tests/general/widgets/register_protocol/hook.js [moved from tests/system_tests/widgets/register_protocol/hook.js with 100% similarity]
tests/general/widgets/register_protocol/index.html [moved from tests/system_tests/widgets/register_content_fail/index.html with 100% similarity]
tests/general/widgets/register_protocol_fail.wgt [moved from tests/system_tests/widgets/register_protocol_fail.wgt with 100% similarity]
tests/general/widgets/register_protocol_fail/config.xml [moved from tests/system_tests/widgets/register_protocol_fail/config.xml with 100% similarity]
tests/general/widgets/register_protocol_fail/hook.js [moved from tests/system_tests/widgets/register_protocol_fail/hook.js with 100% similarity]
tests/general/widgets/register_protocol_fail/index.html [moved from tests/system_tests/widgets/register_content/index.html with 100% similarity]

index e0c73a7..e679d68 100644 (file)
@@ -112,5 +112,5 @@ mkdir -p /opt/share/icons/default/small
 %{_libdir}/systemd/user/tizen-mobile-session.target.wants/wrt-preinstall-widgets.service
 %{_libdir}/systemd/user/wrt-preinstall-widgets.service
 %if %{with_tests}
-    %attr(755,root,root) %{_bindir}/wrt-tests-installer
+    %attr(755,root,root) %{_bindir}/wrt-installer-tests-*
 %endif
index 26b57d4..5951524 100644 (file)
@@ -17,4 +17,4 @@
 #
 
 
-ADD_SUBDIRECTORY(system_tests)
+ADD_SUBDIRECTORY(general)
similarity index 87%
rename from tests/system_tests/CMakeLists.txt
rename to tests/general/CMakeLists.txt
index e1d551b..e72a998 100644 (file)
@@ -62,16 +62,16 @@ include_directories(
 
 ADD_SUBDIRECTORY(common)
 
-SET(MISC_TESTS_SOURCES
+SET(INSTALLER_TESTS_SOURCES
     ${CMAKE_CURRENT_SOURCE_DIR}/TestInit.cpp
     ${CMAKE_CURRENT_SOURCE_DIR}/TestCases.cpp
 )
 
-SET(MISC_TESTS_TARGET "wrt-tests-installer")
+SET(INSTALLER_TESTS_TARGET "wrt-installer-tests-general")
 
-WRT_TEST_BUILD(${MISC_TESTS_TARGET} ${MISC_TESTS_SOURCES})
-WRT_TEST_INSTALL(${MISC_TESTS_TARGET})
-target_link_libraries(${MISC_TESTS_TARGET}
+WRT_TEST_BUILD(${INSTALLER_TESTS_TARGET} ${INSTALLER_TESTS_SOURCES})
+WRT_TEST_INSTALL(${INSTALLER_TESTS_TARGET})
+target_link_libraries(${INSTALLER_TESTS_TARGET}
   ${dpl_LIBRARIES}
   ${dpl-test_LIBRARIES}
   ${WRT_TEST_LIBRARY}
@@ -14,8 +14,8 @@
  *    limitations under the License.
  */
 
-#ifndef WRT_INSTALLER_TESTS_SYSTEM_TESTS_COMMON_INCLUDE_INSTALLER_WRAPPER_H
-#define WRT_INSTALLER_TESTS_SYSTEM_TESTS_COMMON_INCLUDE_INSTALLER_WRAPPER_H
+#ifndef WRT_INSTALLER_TESTS_GENERAL_COMMON_INCLUDE_INSTALLER_WRAPPER_H
+#define WRT_INSTALLER_TESTS_GENERAL_COMMON_INCLUDE_INSTALLER_WRAPPER_H
 
 #include <string>
 
@@ -41,4 +41,4 @@ bool sigintWrtClients();
 
 }
 
-#endif//WRT_INSTALLER_TESTS_SYSTEM_TESTS_COMMON_INCLUDE_INSTALLER_WRAPPER_H
+#endif//WRT_INSTALLER_TESTS_GENERAL_COMMON_INCLUDE_INSTALLER_WRAPPER_H
@@ -19,8 +19,8 @@
  * @brief       Manifest file reading
  */
 
-#ifndef WRT_INSTALLER_TESTS_SYSTEM_TESTS_COMMON_INCLUDE_MANIFESTFILE_H
-#define WRT_INSTALLER_TESTS_SYSTEM_TESTS_COMMON_INCLUDE_MANIFESTFILE_H
+#ifndef WRT_INSTALLER_TESTS_GENERAL_COMMON_INCLUDE_MANIFESTFILE_H
+#define WRT_INSTALLER_TESTS_GENERAL_COMMON_INCLUDE_MANIFESTFILE_H
 
 #include <string>
 
@@ -51,4 +51,4 @@ private:
 };
 
 
-#endif //WRT_INSTALLER_TESTS_SYSTEM_TESTS_COMMON_INCLUDE_MANIFESTFILE_H
+#endif //WRT_INSTALLER_TESTS_GENERAL_COMMON_INCLUDE_MANIFESTFILE_H