28 lines
580 B
C++
28 lines
580 B
C++
#include "TestUpdateScript.h"
|
|
|
|
#include "TestUtils.h"
|
|
#include "UpdateScript.h"
|
|
|
|
#include <iostream>
|
|
#include <algorithm>
|
|
|
|
void TestUpdateScript::testV2Script()
|
|
{
|
|
UpdateScript newFormat;
|
|
UpdateScript oldFormat;
|
|
|
|
newFormat.parse("file_list.xml");
|
|
oldFormat.parse("v2_file_list.xml");
|
|
|
|
TEST_COMPARE(newFormat.filesToInstall(),oldFormat.filesToInstall());
|
|
TEST_COMPARE(newFormat.filesToUninstall(),oldFormat.filesToUninstall());
|
|
}
|
|
|
|
int main(int,char**)
|
|
{
|
|
TestList<TestUpdateScript> tests;
|
|
tests.addTest(&TestUpdateScript::testV2Script);
|
|
return TestUtils::runTest(tests);
|
|
}
|
|
|