blob: b920a8677699a34deded4c51628244c75f86c196 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright (C) 2016 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
source("../../shared/qtcreator.py")
def main():
startQC()
if not startedWithoutPluginError():
return
available = [("5.14", "Qt Quick Application", Targets.DESKTOP_5_14_1_DEFAULT),
]
for qtVersion, appTemplate, targ in available:
# using a temporary directory won't mess up a potentially existing
workingDir = tempDir()
checkedTargets = createNewQtQuickApplication(workingDir, targets=[targ],
minimumQtVersion=qtVersion,
template=appTemplate)[0]
if len(checkedTargets) == 0:
test.fatal("Could not check wanted target")
continue
test.log("Building project %s (%s)"
% (appTemplate, Targets.getStringForTarget(targ)))
invokeMenuItem("Build", "Build All Projects")
waitForCompile()
if not checkCompile():
test.fatal("Compile failed")
else:
checkLastBuild()
test.log("Running project (includes build)")
if runAndCloseApp() == None:
checkCompile()
else:
appOutput = logApplicationOutput()
test.verify(not ("main.qml" in appOutput or "MainForm.ui.qml" in appOutput),
"Does the Application Output indicate QML errors?")
invokeMenuItem("File", "Close All Projects and Editors")
invokeMenuItem("File", "Exit")
|