forked from qt-creator/qt-creator
- tuned timeouts according to expected duration - use default timeout instead of passing equal value Change-Id: I90bcbc5ecfd420a01e05acabc987a67b322c1f3f Reviewed-by: Bill King <bill.king@nokia.com> Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
27 lines
876 B
Python
27 lines
876 B
Python
source("../../shared/qtcreator.py")
|
|
|
|
workingDir = None
|
|
|
|
def main():
|
|
global workingDir
|
|
startApplication("qtcreator" + SettingsPath)
|
|
# using a temporary directory won't mess up an eventually exisiting
|
|
workingDir = tempDir()
|
|
createNewQmlExtension(workingDir)
|
|
# wait for parsing to complete
|
|
waitForSignal("{type='CppTools::Internal::CppModelManager' unnamed='1'}", "sourceFilesRefreshed(QStringList)")
|
|
test.log("Building project")
|
|
invokeMenuItem("Build","Build All")
|
|
waitForSignal("{type='ProjectExplorer::BuildManager' unnamed='1'}", "buildQueueFinished(bool)")
|
|
checkCompile()
|
|
checkLastBuild()
|
|
invokeMenuItem("File", "Exit")
|
|
|
|
def cleanup():
|
|
global workingDir
|
|
# waiting for a clean exit - for a full-remove of the temp directory
|
|
waitForCleanShutdown()
|
|
if workingDir!=None:
|
|
deleteDirIfExists(workingDir)
|
|
|