-
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #760 from QuasarApp/extraDepends_option
Add the extraDepends option
- Loading branch information
Showing
14 changed files
with
149 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//# | ||
//# Copyright (C) 2020-2023 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/libicutu.so.56.1", | ||
"./" + DISTRO_DIR + "/lib/libicuuc.so", | ||
"./" + DISTRO_DIR + "/lib/libicui18n.so", | ||
"./" + DISTRO_DIR + "/lib/libicudata.so", | ||
|
||
}); | ||
|
||
// this cases should contains all icu libs. | ||
runTestParams({"-bin", bin, "clear", | ||
"-libDir", QT_BASE_DIR, | ||
"-recursiveDepth", "4", | ||
"-extraDepends", "libicutu.so.56.1"}, &comapareTree); | ||
|
||
|
||
runTestParams({"-bin", bin, "clear" , | ||
"-libDir", QT_BASE_DIR, | ||
"-recursiveDepth", "4", | ||
"-extraDepends", "TestOnlyC;libicutu.so.56.1"}, &comapareTree); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//# | ||
//# Copyright (C) 2023-2023 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. | ||
//# | ||
|
||
#ifndef EXTRADEPENDSTEST_H | ||
#define EXTRADEPENDSTEST_H | ||
|
||
#include "testbase.h" | ||
#include "testutils.h" | ||
|
||
#include <QtTest> | ||
|
||
class ExtraDependsTest: public TestBase, protected TestUtils | ||
{ | ||
public: | ||
ExtraDependsTest(); | ||
void test() override; | ||
|
||
}; | ||
|
||
#endif // EXTRADEPENDSTEST_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters