forked from qt-creator/qt-creator
Squish: Run tst_CSUP04 with Clang code model, too
Change-Id: I3a2f029e0f1c85ecbd3c161b097f4e975014f714 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -39,13 +39,18 @@ def main():
|
||||
# copy example project to temp directory
|
||||
templateDir = prepareTemplate(sourceExample)
|
||||
examplePath = os.path.join(templateDir, proFile)
|
||||
startApplication("qtcreator" + SettingsPath)
|
||||
startCreatorTryingClang()
|
||||
if not startedWithoutPluginError():
|
||||
return
|
||||
# open example project
|
||||
openQmakeProject(examplePath)
|
||||
# wait for parsing to complete
|
||||
progressBarWait(30000)
|
||||
models = iterateAvailableCodeModels()
|
||||
for current in models:
|
||||
if current != models[0]:
|
||||
selectCodeModel(current)
|
||||
test.log("Testing code model: %s" % current)
|
||||
# open .cpp file in editor
|
||||
if not openDocument("propertyanimation.Sources.main\\.cpp"):
|
||||
test.fatal("Could not open main.cpp")
|
||||
@@ -75,8 +80,7 @@ def main():
|
||||
# wait until search finished and verify search results
|
||||
waitForSearchResults()
|
||||
validateSearchResult(3)
|
||||
# exit qt creator
|
||||
invokeMenuItem("File", "Save All")
|
||||
invokeMenuItem("File", "Close All")
|
||||
invokeMenuItem("File", "Exit")
|
||||
|
||||
def waitForSearchResults():
|
||||
|
Reference in New Issue
Block a user