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
|
# copy example project to temp directory
|
||||||
templateDir = prepareTemplate(sourceExample)
|
templateDir = prepareTemplate(sourceExample)
|
||||||
examplePath = os.path.join(templateDir, proFile)
|
examplePath = os.path.join(templateDir, proFile)
|
||||||
startApplication("qtcreator" + SettingsPath)
|
startCreatorTryingClang()
|
||||||
if not startedWithoutPluginError():
|
if not startedWithoutPluginError():
|
||||||
return
|
return
|
||||||
# open example project
|
# open example project
|
||||||
openQmakeProject(examplePath)
|
openQmakeProject(examplePath)
|
||||||
# wait for parsing to complete
|
# wait for parsing to complete
|
||||||
progressBarWait(30000)
|
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
|
# open .cpp file in editor
|
||||||
if not openDocument("propertyanimation.Sources.main\\.cpp"):
|
if not openDocument("propertyanimation.Sources.main\\.cpp"):
|
||||||
test.fatal("Could not open main.cpp")
|
test.fatal("Could not open main.cpp")
|
||||||
@@ -75,8 +80,7 @@ def main():
|
|||||||
# wait until search finished and verify search results
|
# wait until search finished and verify search results
|
||||||
waitForSearchResults()
|
waitForSearchResults()
|
||||||
validateSearchResult(3)
|
validateSearchResult(3)
|
||||||
# exit qt creator
|
invokeMenuItem("File", "Close All")
|
||||||
invokeMenuItem("File", "Save All")
|
|
||||||
invokeMenuItem("File", "Exit")
|
invokeMenuItem("File", "Exit")
|
||||||
|
|
||||||
def waitForSearchResults():
|
def waitForSearchResults():
|
||||||
|
Reference in New Issue
Block a user