mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-27 02:04:33 +00:00
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
//#
|
|
//# Copyright (C) 2020-2024 QuasarApp.
|
|
//# Distributed under the GPLv3 software license, see the accompanying
|
|
//# Everyone is permitted to copy and distribute verbatim copies
|
|
//# of this license document, but changing it is not allowed.
|
|
//#
|
|
|
|
|
|
#include "qifwresourcestest.h"
|
|
#include <configparser.h>
|
|
#include <dependenciesscanner.h>
|
|
#include <filemanager.h>
|
|
#include <packing.h>
|
|
#include <pluginsparser.h>
|
|
|
|
|
|
void QIFWResourcesTest::test() {
|
|
TestUtils utils;
|
|
|
|
#ifdef Q_OS_UNIX
|
|
QString bin = {TestBinDir + "TestOnlyC"};
|
|
|
|
auto result = utils.createTree({{DISTRO_DIR + "/InstallerTestOnlyC.run"},
|
|
{DISTRO_DIR + "/InstallerTestOnlyC.run.md5"}});
|
|
#else
|
|
QString bin = {TestBinDir + "TestOnlyC.exe"};
|
|
|
|
auto result = utils.createTree({{DISTRO_DIR + "/InstallerTestOnlyC.exe"},
|
|
{DISTRO_DIR + "/InstallerTestOnlyC.exe.md5"}});
|
|
#endif
|
|
|
|
|
|
auto templateDir = TestBinDir + "/../../tests/testRes/QIFCustomTemplate";
|
|
runTestParams({
|
|
"-bin", bin,
|
|
"qifFromSystem",
|
|
"clear",
|
|
"qif",
|
|
"-qifConfig", templateDir + "/customconfig.xml",
|
|
"-qifPackages", templateDir + "/custompackages",
|
|
"-qifResources", templateDir + "/customRes.qrc"
|
|
}, &result
|
|
);
|
|
|
|
}
|