Squish: Use TestSections in tst_create_proj_wizard

Change-Id: Ib097f629a1815e9f372e4bdf91faa14b3a7b9042
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2018-08-03 15:48:20 +02:00
parent c5d961fe01
commit 1785b0f561

View File

@@ -68,20 +68,21 @@ def main():
for current in availableProjectTypes: for current in availableProjectTypes:
category = current.keys()[0] category = current.keys()[0]
template = current.values()[0] template = current.values()[0]
displayedPlatforms = __createProject__(category, template) with TestSection("Testing project template %s -> %s" % (category, template)):
if template.startswith("Qt Quick Application - "): displayedPlatforms = __createProject__(category, template)
qtVersionsForQuick = ["5.6", "5.10"] if template == "Qt Quick Application - Empty" else ["5.10"] if template.startswith("Qt Quick Application - "):
for counter, qtVersion in enumerate(qtVersionsForQuick): qtVersionsForQuick = ["5.6", "5.10"] if template == "Qt Quick Application - Empty" else ["5.10"]
def additionalFunc(displayedPlatforms, qtVersion): for counter, qtVersion in enumerate(qtVersionsForQuick):
requiredQtVersion = __createProjectHandleQtQuickSelection__(qtVersion) def additionalFunc(displayedPlatforms, qtVersion):
__modifyAvailableTargets__(displayedPlatforms, requiredQtVersion, True) requiredQtVersion = __createProjectHandleQtQuickSelection__(qtVersion)
handleBuildSystemVerifyKits(category, template, kits, displayedPlatforms, __modifyAvailableTargets__(displayedPlatforms, requiredQtVersion, True)
additionalFunc, qtVersion) handleBuildSystemVerifyKits(category, template, kits, displayedPlatforms,
# are there more Quick combinations - then recreate this project additionalFunc, qtVersion)
if counter < len(qtVersionsForQuick) - 1: # are there more Quick combinations - then recreate this project
displayedPlatforms = __createProject__(category, template) if counter < len(qtVersionsForQuick) - 1:
continue displayedPlatforms = __createProject__(category, template)
handleBuildSystemVerifyKits(category, template, kits, displayedPlatforms) continue
handleBuildSystemVerifyKits(category, template, kits, displayedPlatforms)
invokeMenuItem("File", "Exit") invokeMenuItem("File", "Exit")