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
|
|
|
createNewQtQuickUI(workingDir)
|
2011-09-06 09:12:15 +02:00
|
|
|
test.log("Running project")
|
|
|
|
|
if runAndCloseQtQuickUI():
|
|
|
|
|
logApplicationOutput()
|
|
|
|
|
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)
|
|
|
|
|
|