2011-09-06 09:12:15 +02:00
|
|
|
source("../../shared/qtcreator.py")
|
|
|
|
|
|
|
|
|
|
workingDir = None
|
|
|
|
|
|
|
|
|
|
def main():
|
2011-09-21 13:55:23 +02:00
|
|
|
global workingDir
|
2011-09-06 09:12:15 +02:00
|
|
|
startApplication("qtcreator" + SettingsPath)
|
|
|
|
|
# using a temporary directory won't mess up an eventually exisiting
|
|
|
|
|
workingDir = tempDir()
|
2011-10-13 14:29:51 +02:00
|
|
|
createNewQmlExtension(workingDir)
|
2011-09-06 09:12:15 +02:00
|
|
|
# wait for parsing to complete
|
2011-11-28 17:35:22 +01:00
|
|
|
waitForSignal("{type='CppTools::Internal::CppModelManager' unnamed='1'}", "sourceFilesRefreshed(QStringList)")
|
2011-09-06 09:12:15 +02:00
|
|
|
test.log("Building project")
|
|
|
|
|
invokeMenuItem("Build","Build All")
|
2011-11-28 17:35:22 +01:00
|
|
|
waitForSignal("{type='ProjectExplorer::BuildManager' unnamed='1'}", "buildQueueFinished(bool)")
|
2011-09-21 13:55:23 +02:00
|
|
|
checkCompile()
|
|
|
|
|
checkLastBuild()
|
2011-09-06 09:12:15 +02:00
|
|
|
invokeMenuItem("File", "Exit")
|
|
|
|
|
|
|
|
|
|
def cleanup():
|
|
|
|
|
global workingDir
|
|
|
|
|
# waiting for a clean exit - for a full-remove of the temp directory
|
2011-09-21 17:29:18 +02:00
|
|
|
waitForCleanShutdown()
|
2011-09-06 09:12:15 +02:00
|
|
|
if workingDir!=None:
|
|
|
|
|
deleteDirIfExists(workingDir)
|
|
|
|
|
|