2013-12-16 04:16:48 +05:30
|
|
|
#include "TestParseScript.h"
|
|
|
|
|
|
|
|
#include "TestUtils.h"
|
|
|
|
#include "UpdateScript.h"
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <algorithm>
|
|
|
|
|
|
|
|
void TestParseScript::testParse()
|
|
|
|
{
|
|
|
|
UpdateScript script;
|
|
|
|
|
2013-12-28 06:33:53 +05:30
|
|
|
script.parse("mmc_updater/src/tests/file_list.xml");
|
2013-12-16 04:16:48 +05:30
|
|
|
|
|
|
|
TEST_COMPARE(script.isValid(),true);
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(int,char**)
|
|
|
|
{
|
|
|
|
TestList<TestParseScript> tests;
|
|
|
|
tests.addTest(&TestParseScript::testParse);
|
|
|
|
return TestUtils::runTest(tests);
|
|
|
|
}
|
|
|
|
|