diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-12-15 23:46:48 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-12-15 23:46:48 +0100 |
commit | b773ef08afff14bf0e342578c21122758c26b680 (patch) | |
tree | a9a647743fff9af3c9fa5169f6382d59ca9470b0 /mmc_updater/src/tests/TestParseScript.cpp | |
parent | b0e8037feb5b9d48defe6b8263d068f87bdb141c (diff) | |
download | MultiMC-b773ef08afff14bf0e342578c21122758c26b680.tar MultiMC-b773ef08afff14bf0e342578c21122758c26b680.tar.gz MultiMC-b773ef08afff14bf0e342578c21122758c26b680.tar.lz MultiMC-b773ef08afff14bf0e342578c21122758c26b680.tar.xz MultiMC-b773ef08afff14bf0e342578c21122758c26b680.zip |
Fix/remove tests from the gutted updater
Diffstat (limited to 'mmc_updater/src/tests/TestParseScript.cpp')
-rw-r--r-- | mmc_updater/src/tests/TestParseScript.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mmc_updater/src/tests/TestParseScript.cpp b/mmc_updater/src/tests/TestParseScript.cpp new file mode 100644 index 00000000..f4453957 --- /dev/null +++ b/mmc_updater/src/tests/TestParseScript.cpp @@ -0,0 +1,24 @@ +#include "TestParseScript.h" + +#include "TestUtils.h" +#include "UpdateScript.h" + +#include <iostream> +#include <algorithm> + +void TestParseScript::testParse() +{ + UpdateScript script; + + script.parse("file_list.xml"); + + TEST_COMPARE(script.isValid(),true); +} + +int main(int,char**) +{ + TestList<TestParseScript> tests; + tests.addTest(&TestParseScript::testParse); + return TestUtils::runTest(tests); +} + |