//# //# Copyright (C) 2020-2022 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 "prefixtest.h" #include "modules.h" #include #include #include #include #include void PrefixTest::test() { TestUtils utils; #ifdef Q_OS_UNIX QFile f("./" + DISTRO_DIR + "/bin/TestOnlyC"); auto comapareTree = utils.createTree( { "./" + DISTRO_DIR + "/package/TestOnlyC.sh", "./" + DISTRO_DIR + "/package/bin/TestOnlyC", "./" + DISTRO_DIR + "/package/bin/qt.conf" }); QString target1 = TestBinDir + "TestOnlyC"; #else QFile f("./" + DISTRO_DIR + "/TestOnlyC.exe"); auto comapareTree = utils.createTree( {"./" + DISTRO_DIR + "/package/TestOnlyC.exe", "./" + DISTRO_DIR + "/package/TestOnlyC.bat", "./" + DISTRO_DIR + "/package/qt.conf"}); QString target1 = TestBinDir + "TestOnlyC.exe"; #endif QString bin = target1; comapareTree = TestModule.replace(comapareTree, {{"package","prefix"}}); runTestParams({"-bin", bin, "force-clear", "-targetPackage", "/package/;TestOn", "-prefix", "package;prefix"}, &comapareTree); }