Tests: Fix manual plugin view test

Amends b822b3f9e2.

Change-Id: Ibbed286a8626396319738194f417cedc84332011
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Christian Stenger
2022-02-10 16:39:48 +01:00
parent a9c5d6b99f
commit 12c63bbce9
5 changed files with 12 additions and 1 deletions

View File

@@ -17,5 +17,7 @@ QtcProduct {
return defines; return defines;
} }
destinationDirectory: project.buildDirectory + '/'
+ FileInfo.relativePath(project.ide_source_tree, sourceDirectory)
install: false install: false
} }

View File

@@ -136,7 +136,7 @@ int main(int argc, char *argv[])
QObject::connect(&app, &QCoreApplication::aboutToQuit, QObject::connect(&app, &QCoreApplication::aboutToQuit,
&manager, &ExtensionSystem::PluginManager::shutdown); &manager, &ExtensionSystem::PluginManager::shutdown);
PluginDialog dialog; PluginDialog dialog;
manager.setPluginPaths(QStringList() << "plugins"); manager.setPluginPaths(QStringList() << app.applicationDirPath() + "/plugins");
manager.loadPlugins(); manager.loadPlugins();
dialog.show(); dialog.show();
app.exec(); app.exec();

View File

@@ -1,7 +1,10 @@
import qbs.FileInfo
QtcManualtest { QtcManualtest {
name: "Manual test plugin1" name: "Manual test plugin1"
targetName: "plugin1" targetName: "plugin1"
type: [ "dynamiclibrary" ] type: [ "dynamiclibrary" ]
destinationDirectory: FileInfo.cleanPath(FileInfo.joinPaths(base , ".."))
Depends { name: "ExtensionSystem" } Depends { name: "ExtensionSystem" }
Depends { name: "Manual test plugin2"} Depends { name: "Manual test plugin2"}

View File

@@ -1,7 +1,10 @@
import qbs.FileInfo
QtcManualtest { QtcManualtest {
name: "Manual test plugin2" name: "Manual test plugin2"
targetName: "plugin2" targetName: "plugin2"
type: [ "dynamiclibrary" ] type: [ "dynamiclibrary" ]
destinationDirectory: FileInfo.cleanPath(FileInfo.joinPaths(base , ".."))
Depends { name: "ExtensionSystem" } Depends { name: "ExtensionSystem" }

View File

@@ -1,7 +1,10 @@
import qbs.FileInfo
QtcManualtest { QtcManualtest {
name: "Manual test plugin3" name: "Manual test plugin3"
targetName: "plugin3" targetName: "plugin3"
type: [ "dynamiclibrary" ] type: [ "dynamiclibrary" ]
destinationDirectory: FileInfo.cleanPath(FileInfo.joinPaths(base , ".."))
Depends { name: "ExtensionSystem" } Depends { name: "ExtensionSystem" }
Depends { name: "Manual test plugin2" } Depends { name: "Manual test plugin2" }