forked from qt-creator/qt-creator
Squish: Clean up
Details: * removed unused functions * removed "QtQuickConstants" (Targets class is used for more than just Qt Quick) * removed Components class Change-Id: I2908348db3e5a627d63242f9524832812822f790 Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
@@ -1,53 +1,35 @@
|
|||||||
# for easier re-usage (because Python hasn't an enum type)
|
# for easier re-usage (because Python hasn't an enum type)
|
||||||
class QtQuickConstants:
|
class Targets:
|
||||||
class Components:
|
DESKTOP_474_GCC = 1
|
||||||
BUILTIN = 1
|
SIMULATOR = 2
|
||||||
MEEGO_HARMATTAN = 2
|
MAEMO5 = 4
|
||||||
EXISTING_QML = 4
|
HARMATTAN = 8
|
||||||
|
EMBEDDED_LINUX = 16
|
||||||
class Targets:
|
DESKTOP_474_MSVC2008 = 32
|
||||||
DESKTOP_474_GCC = 1
|
DESKTOP_501_DEFAULT = 64
|
||||||
SIMULATOR = 2
|
|
||||||
MAEMO5 = 4
|
|
||||||
HARMATTAN = 8
|
|
||||||
EMBEDDED_LINUX = 16
|
|
||||||
DESKTOP_474_MSVC2008 = 32
|
|
||||||
DESKTOP_501_DEFAULT = 64
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def desktopTargetClasses():
|
def desktopTargetClasses():
|
||||||
desktopTargets = QtQuickConstants.Targets.DESKTOP_474_GCC \
|
desktopTargets = Targets.DESKTOP_474_GCC | Targets.DESKTOP_501_DEFAULT
|
||||||
| QtQuickConstants.Targets.DESKTOP_501_DEFAULT
|
|
||||||
if platform.system() in ('Windows', 'Microsoft'):
|
if platform.system() in ('Windows', 'Microsoft'):
|
||||||
desktopTargets |= QtQuickConstants.Targets.DESKTOP_474_MSVC2008
|
desktopTargets |= Targets.DESKTOP_474_MSVC2008
|
||||||
return desktopTargets
|
return desktopTargets
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def getStringForComponents(components):
|
|
||||||
if components==QtQuickConstants.Components.BUILTIN:
|
|
||||||
return "Built-in elements only (for all platforms)"
|
|
||||||
elif components==QtQuickConstants.Components.MEEGO_HARMATTAN:
|
|
||||||
return "Qt Quick Components for Meego/Harmattan"
|
|
||||||
elif components==QtQuickConstants.Components.EXISTING_QML:
|
|
||||||
return "Use an existing .qml file"
|
|
||||||
else:
|
|
||||||
return None
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def getStringForTarget(target):
|
def getStringForTarget(target):
|
||||||
if target==QtQuickConstants.Targets.DESKTOP_474_GCC:
|
if target == Targets.DESKTOP_474_GCC:
|
||||||
return "Desktop 474 GCC"
|
return "Desktop 474 GCC"
|
||||||
elif target==QtQuickConstants.Targets.MAEMO5:
|
elif target == Targets.MAEMO5:
|
||||||
return "Fremantle"
|
return "Fremantle"
|
||||||
elif target==QtQuickConstants.Targets.SIMULATOR:
|
elif target == Targets.SIMULATOR:
|
||||||
return "Qt Simulator"
|
return "Qt Simulator"
|
||||||
elif target==QtQuickConstants.Targets.HARMATTAN:
|
elif target == Targets.HARMATTAN:
|
||||||
return "Harmattan"
|
return "Harmattan"
|
||||||
elif target==QtQuickConstants.Targets.EMBEDDED_LINUX:
|
elif target == Targets.EMBEDDED_LINUX:
|
||||||
return "Embedded Linux"
|
return "Embedded Linux"
|
||||||
elif target==QtQuickConstants.Targets.DESKTOP_474_MSVC2008:
|
elif target == Targets.DESKTOP_474_MSVC2008:
|
||||||
return "Desktop 474 MSVC2008"
|
return "Desktop 474 MSVC2008"
|
||||||
elif target==QtQuickConstants.Targets.DESKTOP_501_DEFAULT:
|
elif target == Targets.DESKTOP_501_DEFAULT:
|
||||||
return "Desktop 501 default"
|
return "Desktop 501 default"
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
@@ -57,7 +39,7 @@ class QtQuickConstants:
|
|||||||
if not isinstance(targets, (tuple,list)):
|
if not isinstance(targets, (tuple,list)):
|
||||||
test.fatal("Wrong usage... This function handles only tuples or lists.")
|
test.fatal("Wrong usage... This function handles only tuples or lists.")
|
||||||
return None
|
return None
|
||||||
result = map(QtQuickConstants.getStringForTarget, targets)
|
result = map(Targets.getStringForTarget, targets)
|
||||||
if None in result:
|
if None in result:
|
||||||
test.fatal("You've passed at least one unknown target!")
|
test.fatal("You've passed at least one unknown target!")
|
||||||
return result
|
return result
|
||||||
|
@@ -12,7 +12,7 @@ def __handleProcessExited__(object, exitCode):
|
|||||||
global processExited
|
global processExited
|
||||||
processExited = True
|
processExited = True
|
||||||
|
|
||||||
def openQmakeProject(projectPath, targets=QtQuickConstants.desktopTargetClasses(), fromWelcome=False):
|
def openQmakeProject(projectPath, targets=Targets.desktopTargetClasses(), fromWelcome=False):
|
||||||
cleanUpUserFiles(projectPath)
|
cleanUpUserFiles(projectPath)
|
||||||
if fromWelcome:
|
if fromWelcome:
|
||||||
mouseClick(waitForObject(":OpenProject_QStyleItem"), 5, 5, 0, Qt.LeftButton)
|
mouseClick(waitForObject(":OpenProject_QStyleItem"), 5, 5, 0, Qt.LeftButton)
|
||||||
@@ -112,7 +112,7 @@ def __createProjectSetNameAndPath__(path, projectName = None, checks = True):
|
|||||||
# param checks turns tests in the function on if set to True
|
# param checks turns tests in the function on if set to True
|
||||||
# param available a list holding the available targets
|
# param available a list holding the available targets
|
||||||
def __selectQtVersionDesktop__(checks, available=None):
|
def __selectQtVersionDesktop__(checks, available=None):
|
||||||
checkedTargets = __chooseTargets__(QtQuickConstants.desktopTargetClasses(), available)
|
checkedTargets = __chooseTargets__(Targets.desktopTargetClasses(), available)
|
||||||
if checks:
|
if checks:
|
||||||
cbObject = ("{type='QCheckBox' text='%s' unnamed='1' visible='1' "
|
cbObject = ("{type='QCheckBox' text='%s' unnamed='1' visible='1' "
|
||||||
"container={type='Utils::DetailsWidget' visible='1' unnamed='1'}}")
|
"container={type='Utils::DetailsWidget' visible='1' unnamed='1'}}")
|
||||||
@@ -204,7 +204,7 @@ def createProject_Qt_Console(path, projectName, checks = True):
|
|||||||
return checkedTargets
|
return checkedTargets
|
||||||
|
|
||||||
def createNewQtQuickApplication(workingDir, projectName = None, templateFile = None,
|
def createNewQtQuickApplication(workingDir, projectName = None, templateFile = None,
|
||||||
targets=QtQuickConstants.desktopTargetClasses(), qtQuickVersion=1,
|
targets=Targets.desktopTargetClasses(), qtQuickVersion=1,
|
||||||
fromWelcome=False):
|
fromWelcome=False):
|
||||||
if templateFile:
|
if templateFile:
|
||||||
available = __createProjectOrFileSelectType__(" Applications", "Qt Quick %d Application (from Existing QML File)"
|
available = __createProjectOrFileSelectType__(" Applications", "Qt Quick %d Application (from Existing QML File)"
|
||||||
@@ -240,7 +240,7 @@ def createNewQmlExtension(workingDir):
|
|||||||
if workingDir == None:
|
if workingDir == None:
|
||||||
workingDir = tempDir()
|
workingDir = tempDir()
|
||||||
__createProjectSetNameAndPath__(workingDir)
|
__createProjectSetNameAndPath__(workingDir)
|
||||||
checkedTargets = __chooseTargets__(QtQuickConstants.Targets.DESKTOP_474_GCC, available)
|
checkedTargets = __chooseTargets__(Targets.DESKTOP_474_GCC, available)
|
||||||
nextButton = waitForObject(":Next_QPushButton")
|
nextButton = waitForObject(":Next_QPushButton")
|
||||||
clickButton(nextButton)
|
clickButton(nextButton)
|
||||||
nameLineEd = waitForObject("{buddy={type='QLabel' text='Object Class-name:' unnamed='1' visible='1'} "
|
nameLineEd = waitForObject("{buddy={type='QLabel' text='Object Class-name:' unnamed='1' visible='1'} "
|
||||||
@@ -253,51 +253,39 @@ def createNewQmlExtension(workingDir):
|
|||||||
__createProjectHandleLastPage__()
|
__createProjectHandleLastPage__()
|
||||||
return checkedTargets
|
return checkedTargets
|
||||||
|
|
||||||
# parameter components can only be one of the Constants defined in QtQuickConstants.Components
|
# parameter target can be an OR'd value of Targets
|
||||||
def __chooseComponents__(components=QtQuickConstants.Components.BUILTIN):
|
|
||||||
rbComponentToChoose = waitForObject("{type='QRadioButton' text='%s' visible='1'}"
|
|
||||||
% QtQuickConstants.getStringForComponents(components))
|
|
||||||
if rbComponentToChoose.checked:
|
|
||||||
test.passes("Selected QRadioButton is '%s'" % QtQuickConstants.getStringForComponents(components))
|
|
||||||
else:
|
|
||||||
clickButton(rbComponentToChoose)
|
|
||||||
test.verify(rbComponentToChoose.checked, "Selected QRadioButton is '%s'"
|
|
||||||
% QtQuickConstants.getStringForComponents(components))
|
|
||||||
|
|
||||||
# parameter target can be an OR'd value of QtQuickConstants.Targets
|
|
||||||
# parameter availableTargets should be the result of __createProjectSelectType__()
|
# parameter availableTargets should be the result of __createProjectSelectType__()
|
||||||
# or use None as a fallback
|
# or use None as a fallback
|
||||||
def __chooseTargets__(targets=QtQuickConstants.Targets.DESKTOP_474_GCC, availableTargets=None,
|
def __chooseTargets__(targets=Targets.DESKTOP_474_GCC, availableTargets=None,
|
||||||
isMaddeDisabled=True):
|
isMaddeDisabled=True):
|
||||||
if availableTargets != None:
|
if availableTargets != None:
|
||||||
available = availableTargets
|
available = availableTargets
|
||||||
else:
|
else:
|
||||||
# following targets depend on the build environment - added for further/later tests
|
# following targets depend on the build environment - added for further/later tests
|
||||||
available = [QtQuickConstants.Targets.DESKTOP_474_GCC, QtQuickConstants.Targets.DESKTOP_501_DEFAULT,
|
available = [Targets.DESKTOP_474_GCC, Targets.DESKTOP_501_DEFAULT, Targets.MAEMO5,
|
||||||
QtQuickConstants.Targets.MAEMO5, QtQuickConstants.Targets.EMBEDDED_LINUX,
|
Targets.EMBEDDED_LINUX, Targets.SIMULATOR, Targets.HARMATTAN]
|
||||||
QtQuickConstants.Targets.SIMULATOR, QtQuickConstants.Targets.HARMATTAN]
|
|
||||||
if platform.system() in ('Windows', 'Microsoft'):
|
if platform.system() in ('Windows', 'Microsoft'):
|
||||||
available.remove(QtQuickConstants.Targets.EMBEDDED_LINUX)
|
available.remove(Targets.EMBEDDED_LINUX)
|
||||||
available.append(QtQuickConstants.Targets.DESKTOP_474_MSVC2008)
|
available.append(Targets.DESKTOP_474_MSVC2008)
|
||||||
if isMaddeDisabled:
|
if isMaddeDisabled:
|
||||||
for target in filter(lambda x: x in available,
|
for target in filter(lambda x: x in available,
|
||||||
(QtQuickConstants.Targets.MAEMO5, QtQuickConstants.Targets.HARMATTAN)):
|
(Targets.MAEMO5, Targets.HARMATTAN)):
|
||||||
available.remove(target)
|
available.remove(target)
|
||||||
checkedTargets = []
|
checkedTargets = []
|
||||||
for current in available:
|
for current in available:
|
||||||
mustCheck = targets & current == current
|
mustCheck = targets & current == current
|
||||||
try:
|
try:
|
||||||
ensureChecked("{type='QCheckBox' text='%s' visible='1'}" % QtQuickConstants.getStringForTarget(current),
|
ensureChecked("{type='QCheckBox' text='%s' visible='1'}" % Targets.getStringForTarget(current),
|
||||||
mustCheck, 3000)
|
mustCheck, 3000)
|
||||||
if (mustCheck):
|
if (mustCheck):
|
||||||
checkedTargets.append(current)
|
checkedTargets.append(current)
|
||||||
except LookupError:
|
except LookupError:
|
||||||
if mustCheck:
|
if mustCheck:
|
||||||
test.fail("Failed to check target '%s'." % QtQuickConstants.getStringForTarget(current))
|
test.fail("Failed to check target '%s'." % Targets.getStringForTarget(current))
|
||||||
else:
|
else:
|
||||||
# Simulator has been added without knowing whether configured or not - so skip warning here?
|
# Simulator has been added without knowing whether configured or not - so skip warning here?
|
||||||
if current != QtQuickConstants.Targets.SIMULATOR:
|
if current != Targets.Targets.SIMULATOR:
|
||||||
test.warning("Target '%s' is not set up correctly." % QtQuickConstants.getStringForTarget(current))
|
test.warning("Target '%s' is not set up correctly." % Targets.getStringForTarget(current))
|
||||||
return checkedTargets
|
return checkedTargets
|
||||||
|
|
||||||
# run and close an application
|
# run and close an application
|
||||||
@@ -453,7 +441,7 @@ def resetApplicationContextToCreator():
|
|||||||
# Simulator must be handled in a special way, because this depends on the
|
# Simulator must be handled in a special way, because this depends on the
|
||||||
# configured Qt versions and Toolchains and cannot be looked up the same way
|
# configured Qt versions and Toolchains and cannot be looked up the same way
|
||||||
# if you set getAsStrings to True this function returns a list of strings instead
|
# if you set getAsStrings to True this function returns a list of strings instead
|
||||||
# of the constants defined in QtQuickConstants.Targets
|
# of the constants defined in Targets
|
||||||
def __getSupportedPlatforms__(text, getAsStrings=False):
|
def __getSupportedPlatforms__(text, getAsStrings=False):
|
||||||
reqPattern = re.compile("requires qt (?P<version>\d+\.\d+(\.\d+)?)", re.IGNORECASE)
|
reqPattern = re.compile("requires qt (?P<version>\d+\.\d+(\.\d+)?)", re.IGNORECASE)
|
||||||
res = reqPattern.search(text)
|
res = reqPattern.search(text)
|
||||||
@@ -465,31 +453,30 @@ def __getSupportedPlatforms__(text, getAsStrings=False):
|
|||||||
supports = text[text.find('Supported Platforms'):].split(":")[1].strip().split(" ")
|
supports = text[text.find('Supported Platforms'):].split(":")[1].strip().split(" ")
|
||||||
result = []
|
result = []
|
||||||
if 'Desktop' in supports:
|
if 'Desktop' in supports:
|
||||||
result.append(QtQuickConstants.Targets.DESKTOP_474_GCC)
|
result.append(Targets.DESKTOP_474_GCC)
|
||||||
result.append(QtQuickConstants.Targets.DESKTOP_501_DEFAULT)
|
result.append(Targets.DESKTOP_501_DEFAULT)
|
||||||
if platform.system() in ("Linux", "Darwin"):
|
if platform.system() in ("Linux", "Darwin"):
|
||||||
result.append(QtQuickConstants.Targets.EMBEDDED_LINUX)
|
result.append(Targets.EMBEDDED_LINUX)
|
||||||
elif platform.system() in ('Windows', 'Microsoft'):
|
elif platform.system() in ('Windows', 'Microsoft'):
|
||||||
result.append(QtQuickConstants.Targets.DESKTOP_474_MSVC2008)
|
result.append(Targets.DESKTOP_474_MSVC2008)
|
||||||
if 'MeeGo/Harmattan' in supports:
|
if 'MeeGo/Harmattan' in supports:
|
||||||
result.append(QtQuickConstants.Targets.HARMATTAN)
|
result.append(Targets.HARMATTAN)
|
||||||
if 'Maemo/Fremantle' in supports:
|
if 'Maemo/Fremantle' in supports:
|
||||||
result.append(QtQuickConstants.Targets.MAEMO5)
|
result.append(Targets.MAEMO5)
|
||||||
if not re.search("custom Qt Creator plugin", text):
|
if not re.search("custom Qt Creator plugin", text):
|
||||||
result.append(QtQuickConstants.Targets.SIMULATOR)
|
result.append(Targets.SIMULATOR)
|
||||||
elif 'Platform independent' in text:
|
elif 'Platform independent' in text:
|
||||||
# MAEMO5 and HARMATTAN could be wrong here - depends on having Madde plugin enabled or not
|
# MAEMO5 and HARMATTAN could be wrong here - depends on having Madde plugin enabled or not
|
||||||
result = [QtQuickConstants.Targets.DESKTOP_474_GCC, QtQuickConstants.Targets.DESKTOP_501_DEFAULT,
|
result = [Targets.DESKTOP_474_GCC, Targets.DESKTOP_501_DEFAULT, Targets.MAEMO5,
|
||||||
QtQuickConstants.Targets.MAEMO5, QtQuickConstants.Targets.SIMULATOR,
|
Targets.SIMULATOR, Targets.HARMATTAN]
|
||||||
QtQuickConstants.Targets.HARMATTAN]
|
|
||||||
if platform.system() in ('Windows', 'Microsoft'):
|
if platform.system() in ('Windows', 'Microsoft'):
|
||||||
result.append(QtQuickConstants.Targets.DESKTOP_474_MSVC2008)
|
result.append(Targets.DESKTOP_474_MSVC2008)
|
||||||
else:
|
else:
|
||||||
test.warning("Returning None (__getSupportedPlatforms__())",
|
test.warning("Returning None (__getSupportedPlatforms__())",
|
||||||
"Parsed text: '%s'" % text)
|
"Parsed text: '%s'" % text)
|
||||||
return None, None
|
return None, None
|
||||||
if getAsStrings:
|
if getAsStrings:
|
||||||
result = QtQuickConstants.getTargetsAsStrings(result)
|
result = Targets.getTargetsAsStrings(result)
|
||||||
return result, version
|
return result, version
|
||||||
|
|
||||||
# copy example project (sourceExample is path to project) to temporary directory inside repository
|
# copy example project (sourceExample is path to project) to temporary directory inside repository
|
||||||
|
@@ -344,8 +344,7 @@ def getConfiguredKits(isMaddeDisabled=True):
|
|||||||
targetInfo = result[targetName]
|
targetInfo = result[targetName]
|
||||||
if targetInfo[0] == "Maemo":
|
if targetInfo[0] == "Maemo":
|
||||||
result.update({targetName:
|
result.update({targetName:
|
||||||
(QtQuickConstants.getStringForTarget(QtQuickConstants.Targets.MAEMO5),
|
(Targets.getStringForTarget(Targets.MAEMO5), targetInfo[1])})
|
||||||
targetInfo[1])})
|
|
||||||
test.log("Configured kits: %s" % str(result))
|
test.log("Configured kits: %s" % str(result))
|
||||||
return result
|
return result
|
||||||
|
|
||||||
@@ -409,7 +408,7 @@ def checkDebuggingLibrary(kitIDs):
|
|||||||
# end of internal function for iterateQtVersions
|
# end of internal function for iterateQtVersions
|
||||||
kits, qtv = iterateKits(True, False, __getQtVersionForKit__)
|
kits, qtv = iterateKits(True, False, __getQtVersionForKit__)
|
||||||
qtVersionsOfKits = zip(kits, qtv)
|
qtVersionsOfKits = zip(kits, qtv)
|
||||||
wantedKits = QtQuickConstants.getTargetsAsStrings(kitIDs)
|
wantedKits = Targets.getTargetsAsStrings(kitIDs)
|
||||||
kitsQtV = dict([i for i in qtVersionsOfKits if i[0] in wantedKits])
|
kitsQtV = dict([i for i in qtVersionsOfKits if i[0] in wantedKits])
|
||||||
tv, builtAndFailedList = iterateQtVersions(False, True, __checkDebugLibsInternalFunc__, kitsQtV)
|
tv, builtAndFailedList = iterateQtVersions(False, True, __checkDebugLibsInternalFunc__, kitsQtV)
|
||||||
built = failed = 0
|
built = failed = 0
|
||||||
|
@@ -7,9 +7,9 @@ def main():
|
|||||||
startApplication("qtcreator" + SettingsPath)
|
startApplication("qtcreator" + SettingsPath)
|
||||||
if not startedWithoutPluginError():
|
if not startedWithoutPluginError():
|
||||||
return
|
return
|
||||||
targets = [QtQuickConstants.Targets.DESKTOP_474_GCC]
|
targets = [Targets.DESKTOP_474_GCC]
|
||||||
if platform.system() in ('Windows', 'Microsoft'):
|
if platform.system() in ('Windows', 'Microsoft'):
|
||||||
targets.append(QtQuickConstants.Targets.DESKTOP_474_MSVC2008)
|
targets.append(Targets.DESKTOP_474_MSVC2008)
|
||||||
if not checkDebuggingLibrary(targets):
|
if not checkDebuggingLibrary(targets):
|
||||||
test.fatal("Error while checking debugging libraries - leaving this test.")
|
test.fatal("Error while checking debugging libraries - leaving this test.")
|
||||||
invokeMenuItem("File", "Exit")
|
invokeMenuItem("File", "Exit")
|
||||||
|
@@ -17,9 +17,9 @@ def main():
|
|||||||
startApplication("qtcreator" + SettingsPath)
|
startApplication("qtcreator" + SettingsPath)
|
||||||
if not startedWithoutPluginError():
|
if not startedWithoutPluginError():
|
||||||
return
|
return
|
||||||
suitableKits = QtQuickConstants.Targets.DESKTOP_474_GCC
|
suitableKits = Targets.DESKTOP_474_GCC
|
||||||
if platform.system() in ('Windows', 'Microsoft'):
|
if platform.system() in ('Windows', 'Microsoft'):
|
||||||
suitableKits |= QtQuickConstants.Targets.DESKTOP_474_MSVC2008
|
suitableKits |= Targets.DESKTOP_474_MSVC2008
|
||||||
checkedTargets = openQmakeProject(SpeedCrunchPath, suitableKits)
|
checkedTargets = openQmakeProject(SpeedCrunchPath, suitableKits)
|
||||||
waitForSignal("{type='CppTools::Internal::CppModelManager' unnamed='1'}", "sourceFilesRefreshed(QStringList)")
|
waitForSignal("{type='CppTools::Internal::CppModelManager' unnamed='1'}", "sourceFilesRefreshed(QStringList)")
|
||||||
|
|
||||||
|
@@ -38,8 +38,7 @@ def performTest(templateDir, qmlFile, isMaddeDisabled):
|
|||||||
comboBox = findObject("{name='comboBox' type='QComboBox' visible='1' "
|
comboBox = findObject("{name='comboBox' type='QComboBox' visible='1' "
|
||||||
"window=':New_Core::Internal::NewDialog'}")
|
"window=':New_Core::Internal::NewDialog'}")
|
||||||
targets = zip(*kits.values())[0]
|
targets = zip(*kits.values())[0]
|
||||||
maddeTargets = QtQuickConstants.getTargetsAsStrings([QtQuickConstants.Targets.MAEMO5,
|
maddeTargets = Targets.getTargetsAsStrings([Targets.MAEMO5, Targets.HARMATTAN])
|
||||||
QtQuickConstants.Targets.HARMATTAN])
|
|
||||||
maddeInTargets = len(set(targets) & set(maddeTargets)) > 0
|
maddeInTargets = len(set(targets) & set(maddeTargets)) > 0
|
||||||
test.compare(comboBox.enabled, maddeInTargets, "Verifying whether combox is enabled.")
|
test.compare(comboBox.enabled, maddeInTargets, "Verifying whether combox is enabled.")
|
||||||
test.compare(maddeInTargets, not isMaddeDisabled, "Verifying if kits are configured.")
|
test.compare(maddeInTargets, not isMaddeDisabled, "Verifying if kits are configured.")
|
||||||
|
@@ -7,7 +7,7 @@ def main():
|
|||||||
# using a temporary directory won't mess up a potentially existing
|
# using a temporary directory won't mess up a potentially existing
|
||||||
workingDir = tempDir()
|
workingDir = tempDir()
|
||||||
checkedTargets, projectName = createNewQtQuickApplication(workingDir,
|
checkedTargets, projectName = createNewQtQuickApplication(workingDir,
|
||||||
targets = QtQuickConstants.Targets.DESKTOP_474_GCC)
|
targets = Targets.DESKTOP_474_GCC)
|
||||||
test.log("Building project")
|
test.log("Building project")
|
||||||
result = modifyRunSettingsForHookInto(projectName, len(checkedTargets), 11223)
|
result = modifyRunSettingsForHookInto(projectName, len(checkedTargets), 11223)
|
||||||
invokeMenuItem("Build", "Build All")
|
invokeMenuItem("Build", "Build All")
|
||||||
|
@@ -12,7 +12,7 @@ def main():
|
|||||||
workingDir = tempDir()
|
workingDir = tempDir()
|
||||||
checkedTargets, projectName = createNewQtQuickApplication(workingDir, None,
|
checkedTargets, projectName = createNewQtQuickApplication(workingDir, None,
|
||||||
os.path.join(prepareTemplate(sourceExample), qmlFile),
|
os.path.join(prepareTemplate(sourceExample), qmlFile),
|
||||||
QtQuickConstants.Targets.DESKTOP_474_GCC)
|
Targets.DESKTOP_474_GCC)
|
||||||
test.log("Building project")
|
test.log("Building project")
|
||||||
result = modifyRunSettingsForHookInto(projectName, len(checkedTargets), 11223)
|
result = modifyRunSettingsForHookInto(projectName, len(checkedTargets), 11223)
|
||||||
invokeMenuItem("Build","Build All")
|
invokeMenuItem("Build","Build All")
|
||||||
|
Reference in New Issue
Block a user