GH-1060 implement very basic updater (only linux and maybe osx right now)
This commit is contained in:
parent
166813cb91
commit
82e05661d2
8 changed files with 170 additions and 116 deletions
|
@ -69,20 +69,6 @@ slots:
|
|||
{
|
||||
}
|
||||
|
||||
void test_writeInstallScript()
|
||||
{
|
||||
OperationList ops;
|
||||
|
||||
ops << Operation::CopyOp("sourceOne", "destOne", 0777)
|
||||
<< Operation::CopyOp("MultiMC.exe", "M/u/l/t/i/M/C/e/x/e")
|
||||
<< Operation::DeleteOp("toDelete.abc");
|
||||
auto testFile = "tests/data/tst_DownloadTask-test_writeInstallScript.xml";
|
||||
const QString script = QDir::temp().absoluteFilePath("MultiMCUpdateScript.xml");
|
||||
QVERIFY(writeInstallScript(ops, script));
|
||||
QCOMPARE(TestsInternal::readFileUtf8(script).replace(QRegExp("[\r\n]+"), "\n"),
|
||||
MULTIMC_GET_TEST_FILE_UTF8(testFile).replace(QRegExp("[\r\n]+"), "\n"));
|
||||
}
|
||||
|
||||
void test_parseVersionInfo_data()
|
||||
{
|
||||
QTest::addColumn<QByteArray>("data");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue