2012-02-16 15:07:31 +01:00
|
|
|
source("../../shared/qtcreator.py")
|
|
|
|
|
source("../../shared/suites_qtta.py")
|
|
|
|
|
|
|
|
|
|
# entry of test
|
|
|
|
|
def main():
|
|
|
|
|
startApplication("qtcreator" + SettingsPath)
|
|
|
|
|
# create qt quick application
|
|
|
|
|
createNewQtQuickApplication(tempDir(), "SampleApp")
|
|
|
|
|
# build it - on all (except Qt 4.7.0 (would fail)) build configurations
|
2012-07-20 14:18:49 +02:00
|
|
|
availableConfigs = iterateBuildConfigs(1, 0)
|
2012-05-21 16:24:23 +02:00
|
|
|
if not availableConfigs:
|
|
|
|
|
test.fatal("Haven't found a suitable Qt version (anything except Qt 4.7.0) - leaving without building.")
|
|
|
|
|
for config in availableConfigs:
|
2012-02-16 15:07:31 +01:00
|
|
|
selectBuildConfig(1, 0, config)
|
|
|
|
|
# try to compile
|
|
|
|
|
test.log("Testing build configuration: " + config)
|
2012-09-11 16:32:14 +02:00
|
|
|
clickButton(waitForObject(":*Qt Creator.Build Project_Core::Internal::FancyToolButton"))
|
2012-02-16 15:07:31 +01:00
|
|
|
waitForSignal("{type='ProjectExplorer::BuildManager' unnamed='1'}", "buildQueueFinished(bool)")
|
|
|
|
|
# check output if build successful
|
2012-09-11 16:32:14 +02:00
|
|
|
ensureChecked(waitForObject(":Qt Creator_CompileOutput_Core::Internal::OutputPaneToggleButton"))
|
2012-02-16 15:07:31 +01:00
|
|
|
compileOutput = waitForObject(":Qt Creator.Compile Output_Core::OutputWindow")
|
|
|
|
|
if not test.verify(str(compileOutput.plainText).endswith("exited normally."),
|
|
|
|
|
"Verifying building of simple qt quick application."):
|
|
|
|
|
test.log(compileOutput.plainText)
|
|
|
|
|
# exit qt creator
|
|
|
|
|
invokeMenuItem("File", "Exit")
|