Remove two tests from WidgetUpdate test group
authorGrzegorz Rynkowski <g.rynkowski@samsung.com>
Thu, 20 Jun 2013 17:34:21 +0000 (19:34 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 21 Jun 2013 08:35:32 +0000 (08:35 +0000)
[Issue#] LINUXWRT-403
[Problem] Two tests are incompatible to the specification 2.1
[Cause] N/A
[Solution] Comment it.
[Verification]
    1. Build wrt-installer repo with --define "WITH_TESTS ON"
    2. Run tests wrt-installer-tests-general --output=text.
    It should be test group named "WidgetUpdate" who contains 5 tesets.
    All of them should pass.

Change-Id: Idf140b87bf7077e1014f269a4c8091e357078bf2

tests/general/WidgetUpdateTests.cpp

index cbcc24f..064e545 100644 (file)
@@ -86,44 +86,49 @@ RUNNER_TEST(validUpdateOfUnsigned)
 }
 
 /*
-Name: unupdateOfSigned
-Description: Tests update that signed web app could be downgraded.
-Expected: Widget should not be updated.
-*/
-RUNNER_TEST(unupdateOfSigned)
-{
-    std::string tizenId;
-    std::string wgtPath;
-
-    wgtPath = miscWidgetsStuff + "widgets/widgetUpdateVer220Signed.wgt";
-    RUNNER_ASSERT_MSG(InstallerWrapper::Success == install(wgtPath, tizenId),
-            "Failed to install widget");
-
-    wgtPath = miscWidgetsStuff + "widgets/widgetUpdateVer100Signed.wgt";
-    RUNNER_ASSERT_MSG_SAFE(InstallerWrapper::Success != install(wgtPath, tizenId),
-            "Unupdate should be prohibited.");
-    uninstall(tizenId);
-}
-
-/*
-Name: unupdateOfSigned
-Description: Tests update that unsigned web app could be downgraded.
-Expected: Widget should not be updated.
-*/
-RUNNER_TEST(unupdateOfUnsigned)
-{
-    std::string tizenId;
-    std::string wgtPath;
-
-    wgtPath = miscWidgetsStuff + "widgets/widgetUpdateVer220Unsigned.wgt";
-    RUNNER_ASSERT_MSG(InstallerWrapper::Success == install(wgtPath, tizenId),
-            "Failed to install widget");
-
-    wgtPath = miscWidgetsStuff + "widgets/widgetUpdateVer100Unsigned.wgt";
-    RUNNER_ASSERT_MSG_SAFE(InstallerWrapper::Success != install(wgtPath, tizenId),
-            "Unupdate should be prohibited.");
-    uninstall(tizenId);
-}
+ * Information:
+ * These tests are incompatible to the specification 2.1
+ *      (but compatible to the specification 3.0).
+ */
+///*
+//Name: unupdateOfSigned
+//Description: Tests update that signed web app could be downgraded.
+//Expected: Widget should not be updated.
+//*/
+//RUNNER_TEST(unupdateOfSigned)
+//{
+//    std::string tizenId;
+//    std::string wgtPath;
+//
+//    wgtPath = miscWidgetsStuff + "widgets/widgetUpdateVer220Signed.wgt";
+//    RUNNER_ASSERT_MSG(InstallerWrapper::Success == install(wgtPath, tizenId),
+//            "Failed to install widget");
+//
+//    wgtPath = miscWidgetsStuff + "widgets/widgetUpdateVer100Signed.wgt";
+//    RUNNER_ASSERT_MSG_SAFE(InstallerWrapper::Success != install(wgtPath, tizenId),
+//            "Unupdate should be prohibited.");
+//    uninstall(tizenId);
+//}
+//
+///*
+//Name: unupdateOfSigned
+//Description: Tests update that unsigned web app could be downgraded.
+//Expected: Widget should not be updated.
+//*/
+//RUNNER_TEST(unupdateOfUnsigned)
+//{
+//    std::string tizenId;
+//    std::string wgtPath;
+//
+//    wgtPath = miscWidgetsStuff + "widgets/widgetUpdateVer220Unsigned.wgt";
+//    RUNNER_ASSERT_MSG(InstallerWrapper::Success == install(wgtPath, tizenId),
+//            "Failed to install widget");
+//
+//    wgtPath = miscWidgetsStuff + "widgets/widgetUpdateVer100Unsigned.wgt";
+//    RUNNER_ASSERT_MSG_SAFE(InstallerWrapper::Success != install(wgtPath, tizenId),
+//            "Unupdate should be prohibited.");
+//    uninstall(tizenId);
+//}
 
 /*
 Name: validUpdateOfCrossSigned