summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2022-05-12 14:16:37 +0200
committerDominik Holland <dominik.holland@qt.io>2022-05-17 16:15:30 +0200
commit09a04d27e7a1b7b618589d94fc3c5ad528b396fd (patch)
tree061d3da7fb4d975966907c514b7510c76bc2a314
parent98697819596f318c09a320b4649a8c9b69bc309b (diff)
downloadqtapplicationmanager-09a04d27e7a1b7b618589d94fc3c5ad528b396fd.tar.gz
Fix autotests to work on windows
The test doesn't work if debug_and_release is set for the app lib as the libs are created in subfolders in this case. Because of the special coin test setup the pro files need to be split up. The simple QML autotest doesn't need special handling on windows anymore. Change-Id: I73e0af8483438fa1ff249156d9f6e9f63eb229db Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Robert Griebl <robert.griebl@qt.io>
-rw-r--r--tests/qml/resources/apps/app1/app1.pro2
-rw-r--r--tests/qml/resources/resources.pro1
-rw-r--r--tests/qml/resources/systemplugin.pro8
-rw-r--r--tests/qml/resources/test.pro8
-rw-r--r--tests/qml/simple/tst_applicationmanager.qml4
5 files changed, 13 insertions, 10 deletions
diff --git a/tests/qml/resources/apps/app1/app1.pro b/tests/qml/resources/apps/app1/app1.pro
index cbbb4758..e16704f7 100644
--- a/tests/qml/resources/apps/app1/app1.pro
+++ b/tests/qml/resources/apps/app1/app1.pro
@@ -3,6 +3,8 @@ TARGET = app1plugin
CONFIG += plugin
RESOURCES = app1plugin.qrc
+CONFIG -= debug_and_release
+
RESOURCE_SOURCE = app1file.qrc
load(generate-resource)
diff --git a/tests/qml/resources/resources.pro b/tests/qml/resources/resources.pro
index 6da64f00..7f1e19e1 100644
--- a/tests/qml/resources/resources.pro
+++ b/tests/qml/resources/resources.pro
@@ -1,5 +1,6 @@
TEMPLATE = subdirs
SUBDIRS = test.pro \
+ systemplugin.pro \
appcommon \
apps/app1 \
apps/app2
diff --git a/tests/qml/resources/systemplugin.pro b/tests/qml/resources/systemplugin.pro
new file mode 100644
index 00000000..1e170c18
--- /dev/null
+++ b/tests/qml/resources/systemplugin.pro
@@ -0,0 +1,8 @@
+RESOURCE_SOURCE = systemuifile.qrc
+load(generate-resource)
+
+TEMPLATE = lib
+TARGET = systemuiplugin
+CONFIG += plugin
+CONFIG -= debug_and_release
+RESOURCES = systemuiplugin.qrc
diff --git a/tests/qml/resources/test.pro b/tests/qml/resources/test.pro
index 3553c02a..be0e9141 100644
--- a/tests/qml/resources/test.pro
+++ b/tests/qml/resources/test.pro
@@ -8,11 +8,3 @@ FILES = am-config.yaml \
apps/app2/icon.png apps/app2/info.yaml
DESTDIR = $$OUT_PWD
load(am-qml-testcase)
-
-RESOURCE_SOURCE = systemuifile.qrc
-load(generate-resource)
-
-TEMPLATE = lib
-TARGET = systemuiplugin
-CONFIG += plugin
-RESOURCES = systemuiplugin.qrc
diff --git a/tests/qml/simple/tst_applicationmanager.qml b/tests/qml/simple/tst_applicationmanager.qml
index 92718be0..b5169f2d 100644
--- a/tests/qml/simple/tst_applicationmanager.qml
+++ b/tests/qml/simple/tst_applicationmanager.qml
@@ -306,10 +306,10 @@ TestCase {
exitCode: 0, exitStatus: Am.NormalExit },
{tag: "ForceKill", appId: "tld.test.simple2", index: 1, forceKill: true,
exitCode: Qt.platform.os !== 'windows' ? 9 : 0,
- exitStatus: Qt.platform.os !== 'windows' ? Am.ForcedExit : Am.CrashExit },
+ exitStatus: Am.ForcedExit },
{tag: "AutoTerminate", appId: "tld.test.simple2", index: 1, forceKill: false,
exitCode: Qt.platform.os !== 'windows' ? 15 : 0,
- exitStatus: Qt.platform.os !== 'windows' ? Am.ForcedExit : Am.CrashExit }
+ exitStatus: Am.ForcedExit }
];
}