//# //# 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 #include #include #include #include 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 ); }