diff options
| author | Petr Mrázek <peterix@gmail.com> | 2013-12-07 03:57:40 +0100 |
|---|---|---|
| committer | Petr Mrázek <peterix@gmail.com> | 2013-12-07 03:57:40 +0100 |
| commit | 220e07aef4a34dca9f31ae0c5bb994e5c594125d (patch) | |
| tree | 70821c6dbe7e6c2f66f231dcb1bad62a763638d7 /mmc_updater/src/tests | |
| parent | 858916b951e92127c22503826b746d1e70c433f6 (diff) | |
| parent | 7a6705030c36b2d6b94da1acd5bdf2311e4efeb7 (diff) | |
| download | PrismLauncher-220e07aef4a34dca9f31ae0c5bb994e5c594125d.tar.gz PrismLauncher-220e07aef4a34dca9f31ae0c5bb994e5c594125d.tar.bz2 PrismLauncher-220e07aef4a34dca9f31ae0c5bb994e5c594125d.zip | |
Merge branch 'feature_updater' of github.com:MultiMC/MultiMC5 into feature_updater
Diffstat (limited to 'mmc_updater/src/tests')
| -rw-r--r-- | mmc_updater/src/tests/TestUpdateScript.cpp | 21 | ||||
| -rw-r--r-- | mmc_updater/src/tests/TestUpdateScript.h | 1 |
2 files changed, 0 insertions, 22 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); } diff --git a/mmc_updater/src/tests/TestUpdateScript.h b/mmc_updater/src/tests/TestUpdateScript.h index fd0994fe..513513d5 100644 --- a/mmc_updater/src/tests/TestUpdateScript.h +++ b/mmc_updater/src/tests/TestUpdateScript.h @@ -4,6 +4,5 @@ class TestUpdateScript { public: void testV2Script(); - void testPermissions(); }; |
