mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-05-03 21:19:34 +00:00
55 lines
1.5 KiB
C++
55 lines
1.5 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 "extradependstest.h"
|
|
#include "modules.h"
|
|
|
|
ExtraDependsTest::ExtraDependsTest() {
|
|
|
|
}
|
|
|
|
void ExtraDependsTest::test() {
|
|
TestUtils utils;
|
|
|
|
QString bin = TestBinDir + "TestOnlyC";
|
|
|
|
auto comapareTree = TestModule.onlyC();
|
|
|
|
// should be without icu libs
|
|
runTestParams({"-bin", bin, "clear",
|
|
"-libDir", QT_BASE_DIR,
|
|
"-recursiveDepth", "4"}, &comapareTree);
|
|
|
|
comapareTree += utils.createTree(
|
|
{
|
|
"./" + DISTRO_DIR + "/lib/libicuio.so",
|
|
"./" + DISTRO_DIR + "/lib/libicudata.so",
|
|
"./" + DISTRO_DIR + "/lib/libicui18n.so",
|
|
"./" + DISTRO_DIR + "/lib/libicuuc.so",
|
|
});
|
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
|
|
QString extraLibName = "libicuio.so.73";
|
|
|
|
#else
|
|
QString extraLibName = "libicuio.so.56.1";
|
|
|
|
#endif
|
|
|
|
// this cases should contains all icu libs.
|
|
runTestParams({"-bin", bin, "clear",
|
|
"-libDir", QT_BASE_DIR,
|
|
"-recursiveDepth", "4",
|
|
"-extraDepends", extraLibName}, &comapareTree);
|
|
|
|
|
|
runTestParams({"-bin", bin, "clear" ,
|
|
"-libDir", QT_BASE_DIR,
|
|
"-recursiveDepth", "4",
|
|
"-extraDepends", "TestOnlyC;" + extraLibName}, &comapareTree);
|
|
|
|
}
|