2023-06-16 23:17:41 +02:00
|
|
|
//#
|
2023-12-31 09:24:12 +01:00
|
|
|
//# Copyright (C) 2020-2024 QuasarApp.
|
2023-06-16 23:17:41 +02:00
|
|
|
//# 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();
|
2023-06-18 17:33:56 +02:00
|
|
|
|
|
|
|
// should be without icu libs
|
|
|
|
runTestParams({"-bin", bin, "clear",
|
|
|
|
"-libDir", QT_BASE_DIR,
|
|
|
|
"-recursiveDepth", "4"}, &comapareTree);
|
|
|
|
|
|
|
|
comapareTree += utils.createTree(
|
2023-06-16 23:17:41 +02:00
|
|
|
{
|
2024-12-22 13:35:06 +01:00
|
|
|
"./" + DISTRO_DIR + "/lib/libicuio.so",
|
2023-06-18 17:33:56 +02:00
|
|
|
"./" + DISTRO_DIR + "/lib/libicudata.so",
|
2024-12-22 13:35:06 +01:00
|
|
|
"./" + DISTRO_DIR + "/lib/libicui18n.so",
|
|
|
|
"./" + DISTRO_DIR + "/lib/libicuuc.so",
|
2023-06-16 23:17:41 +02:00
|
|
|
});
|
2024-12-22 13:35:06 +01:00
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
|
|
|
|
QString extraLibName = "libicuio.so.73";
|
|
|
|
|
|
|
|
#else
|
|
|
|
QString extraLibName = "libicuio.so.56.1";
|
|
|
|
|
|
|
|
#endif
|
2023-06-16 23:17:41 +02:00
|
|
|
|
2023-06-18 17:33:56 +02:00
|
|
|
// this cases should contains all icu libs.
|
|
|
|
runTestParams({"-bin", bin, "clear",
|
|
|
|
"-libDir", QT_BASE_DIR,
|
|
|
|
"-recursiveDepth", "4",
|
2024-12-22 13:35:06 +01:00
|
|
|
"-extraDepends", extraLibName}, &comapareTree);
|
2023-06-16 23:17:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
runTestParams({"-bin", bin, "clear" ,
|
2023-06-18 17:33:56 +02:00
|
|
|
"-libDir", QT_BASE_DIR,
|
|
|
|
"-recursiveDepth", "4",
|
2024-12-22 13:35:06 +01:00
|
|
|
"-extraDepends", "TestOnlyC;" + extraLibName}, &comapareTree);
|
2023-06-16 23:17:41 +02:00
|
|
|
|
|
|
|
}
|