Skip to content

Commit dcb26b0

Browse files
authored
Merge pull request #802 from QuasarApp/task_801
Added multimedia plugin into deploy rules
2 parents 783f8fa + 5735fea commit dcb26b0

File tree

7 files changed

+35
-2
lines changed

7 files changed

+35
-2
lines changed

src/Deploy/src/pluginsparser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ static const PluginModuleMapping pluginModuleMappings[] =
3636
{"audio", DeployCore::QtModule::QtMultimediaModule},
3737
{"mediaservice", DeployCore::QtModule::QtMultimediaModule},
3838
{"playlistformats", DeployCore::QtModule::QtMultimediaModule},
39+
{"multimedia", DeployCore::QtModule::QtMultimediaModule},
3940
{"bearer", DeployCore::QtModule::QtNetworkModule},
4041
{"tls", DeployCore::QtModule::QtNetworkModule},
4142
{"networkinformation", DeployCore::QtModule::QtNetworkModule},

tests/modules/modulesqt6_5.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,22 @@ QSet<QString> ModulesQt6_5::qmlVirtualKeyBoadrLibs(const QString &distDir) const
5757
TestUtils utils;
5858

5959
auto Tree = ModulesQt6_4::qmlVirtualKeyBoadrLibs(distDir);
60+
61+
#ifdef Q_OS_WIN
62+
Tree += utils.createTree(
63+
{
64+
"./" + distDir + "/plugins/multimedia/ffmpegmediaplugin.dll",
65+
"./" + distDir + "/plugins/multimedia/windowsmediaplugin.dll"
66+
}
67+
);
68+
#else
69+
Tree += utils.createTree(
70+
{
71+
"./" + distDir + "/plugins/multimedia/libffmpegmediaplugin.so",
72+
"./" + distDir + "/plugins/multimedia/libgstreamermediaplugin.so"
73+
}
74+
);
75+
#endif
6076
return Tree;
6177
}
6278

tests/tstMain.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@ tstMain::tstMain() {
278278
cqtTestPath = cqtTestPath +
279279
DeployCore::getEnvSeparator() +
280280
QT_BASE_DIR + "/../../Tools/QtInstallerFramework/4.6/bin/";
281+
cqtTestPath = cqtTestPath +
282+
DeployCore::getEnvSeparator() +
283+
QT_BASE_DIR + "/../../Tools/QtInstallerFramework/4.7/bin/";
281284
qputenv("PATH", cqtTestPath.toLatin1().data());
282285
TestUtils utils;
283286

tests/units/linux/allowemptypackagestest.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ void AllowEmptyPackagesTest::test() {
3030
"-prefix", "package;prefix",
3131
"allowEmptyPackages"});
3232
}
33+
34+
QString AllowEmptyPackagesTest::testName() const {
35+
return "AllowEmptyPackagesTest";
36+
}

tests/units/linux/allowemptypackagestest.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ class AllowEmptyPackagesTest: public TestBase, protected TestUtils
1818
public:
1919
void test() override;
2020

21+
22+
// TestBase interface
23+
public:
24+
QString testName() const override;
2125
};
2226

2327
#endif // ALLOW_EMPTY_PACKAGES_TEST_H

tests/units/testbase.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ TestBase::TestBase()
1717

1818
}
1919

20+
QString TestBase::testName() const {
21+
return typeid(*this).name();
22+
}
23+
2024
int TestBase::generateLib(const QString &paath) {
2125
QDir dir;
2226
dir.mkpath(QFileInfo(paath).absolutePath());
@@ -115,13 +119,13 @@ void TestBase::checkResults(const QSet<QString> &tree, bool noWarnings, bool onl
115119

116120
QJsonDocument doc(obj);
117121

118-
QFile lasttree("./LastTree.json");
122+
QFile lasttree(QString("./%0_LastTree.json").arg(testName()));
119123
lasttree.open(QIODevice::WriteOnly| QIODevice::Truncate);
120124

121125
lasttree.write(doc.toJson());
122126
lasttree.close();
123127

124-
lasttree.setFileName("./CompareTree.json");
128+
lasttree.setFileName(QString("./%0_CompareTree.json").arg(testName()));
125129
lasttree.open(QIODevice::WriteOnly| QIODevice::Truncate);
126130

127131
lasttree.write(QJsonDocument(comapreResult).toJson());

tests/units/testbase.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class TestBase: public Test
1515
public:
1616
TestBase();
1717

18+
virtual QString testName() const;
1819
void deploytest();
1920
int generateLib(const QString &paath);
2021
void deleteLib(const QString &paath);

0 commit comments

Comments
 (0)