From 2a22284448b7428a00bc47b87a115195a0ed1498 Mon Sep 17 00:00:00 2001 From: Grzegorz Rynkowski Date: Thu, 20 Jun 2013 19:34:21 +0200 Subject: [PATCH] Remove two tests from WidgetUpdate test group [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 | 81 ++++++++++++++++++++----------------- 1 file changed, 43 insertions(+), 38 deletions(-) diff --git a/tests/general/WidgetUpdateTests.cpp b/tests/general/WidgetUpdateTests.cpp index cbcc24f..064e545 100644 --- a/tests/general/WidgetUpdateTests.cpp +++ b/tests/general/WidgetUpdateTests.cpp @@ -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 -- 2.7.4