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 09:25:38 +05:30
|
|
|
script.parse("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);
|
|
|
|
}
|
|
|
|
|