summaryrefslogtreecommitdiffstats
path: root/mmc_updater/src/tests/TestUpdateScript.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-12-07 03:57:40 +0100
committerPetr Mrázek <peterix@gmail.com>2013-12-07 03:57:40 +0100
commit220e07aef4a34dca9f31ae0c5bb994e5c594125d (patch)
tree70821c6dbe7e6c2f66f231dcb1bad62a763638d7 /mmc_updater/src/tests/TestUpdateScript.cpp
parent858916b951e92127c22503826b746d1e70c433f6 (diff)
parent7a6705030c36b2d6b94da1acd5bdf2311e4efeb7 (diff)
downloadMultiMC-220e07aef4a34dca9f31ae0c5bb994e5c594125d.tar
MultiMC-220e07aef4a34dca9f31ae0c5bb994e5c594125d.tar.gz
MultiMC-220e07aef4a34dca9f31ae0c5bb994e5c594125d.tar.lz
MultiMC-220e07aef4a34dca9f31ae0c5bb994e5c594125d.tar.xz
MultiMC-220e07aef4a34dca9f31ae0c5bb994e5c594125d.zip
Merge branch 'feature_updater' of github.com:MultiMC/MultiMC5 into feature_updater
Diffstat (limited to 'mmc_updater/src/tests/TestUpdateScript.cpp')
-rw-r--r--mmc_updater/src/tests/TestUpdateScript.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/mmc_updater/src/tests/TestUpdateScript.cpp b/mmc_updater/src/tests/TestUpdateScript.cpp
index 9e8c1392..30a7572a 100644
--- a/mmc_updater/src/tests/TestUpdateScript.cpp
+++ b/mmc_updater/src/tests/TestUpdateScript.cpp
@@ -18,31 +18,10 @@ void TestUpdateScript::testV2Script()
TEST_COMPARE(newFormat.filesToUninstall(),oldFormat.filesToUninstall());
}
-void TestUpdateScript::testPermissions()
-{
- UpdateScript script;
- script.parse("file_list.xml");
-
- for (std::vector<UpdateScriptFile>::const_iterator iter = script.filesToInstall().begin();
- iter != script.filesToInstall().end();
- iter++)
- {
- if (iter->isMainBinary)
- {
- TEST_COMPARE(iter->permissions,0755);
- }
- if (!iter->linkTarget.empty())
- {
- TEST_COMPARE(iter->permissions,0);
- }
- }
-}
-
int main(int,char**)
{
TestList<TestUpdateScript> tests;
tests.addTest(&TestUpdateScript::testV2Script);
- tests.addTest(&TestUpdateScript::testPermissions);
return TestUtils::runTest(tests);
}