diff options
author | Andrew <forkk@forkk.net> | 2013-12-05 20:32:12 -0600 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-12-05 20:32:52 -0600 |
commit | e90f1a27569ac6b9e9782646c9de92fc9534b1d2 (patch) | |
tree | d04e408ed599a6f33bdcd341dbc99cb6d1de5cb7 /mmc_updater/src/tests | |
parent | 48ec8e67b8cff63cd2d0e08c17e7bb576b4e07a7 (diff) | |
download | MultiMC-e90f1a27569ac6b9e9782646c9de92fc9534b1d2.tar MultiMC-e90f1a27569ac6b9e9782646c9de92fc9534b1d2.tar.gz MultiMC-e90f1a27569ac6b9e9782646c9de92fc9534b1d2.tar.lz MultiMC-e90f1a27569ac6b9e9782646c9de92fc9534b1d2.tar.xz MultiMC-e90f1a27569ac6b9e9782646c9de92fc9534b1d2.zip |
Implement update installer
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(); }; |