forked from qt-creator/qt-creator
Squish: Use Qt5.2.1 kit if possible
Change-Id: I674c100e12c5553c2cee36ea2d78ba4e6f61a299 Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
@@ -11,8 +11,8 @@ On Linux/Mac this is ~/QtSDK, and on Windows this is C:\QtSDK.
|
|||||||
After installing the QtSDK you should use the package manager of the QtSDK (SDKMaintenanceTool) to add some more packages.
|
After installing the QtSDK you should use the package manager of the QtSDK (SDKMaintenanceTool) to add some more packages.
|
||||||
You'll need at least Desktop Qt versions 4.7.4, 4.8.0, Harmattan stuff (except QEmu), Maemo Toolchain, Qt Examples, Simulator, Documentation files.
|
You'll need at least Desktop Qt versions 4.7.4, 4.8.0, Harmattan stuff (except QEmu), Maemo Toolchain, Qt Examples, Simulator, Documentation files.
|
||||||
|
|
||||||
Third - some of the test suites/test cases expect Qt 5.0.1 installed in its default location.
|
Third - some of the test suites/test cases expect Qt 5.0.1 and Qt 5.2.1 installed in its default location.
|
||||||
On Linux/Mac this is ~/Qt5.0.1, and on Windows this is C:\Qt\Qt5.0.1.
|
On Linux/Mac this is ~/Qt5.0.1 or ~/Qt5.2.1, and on Windows this is C:\Qt\Qt5.0.1 or C:\Qt\Qt5.2.1.
|
||||||
|
|
||||||
Fourth - you'll have to provide some additional repositories (and for the hooking into subprocesses even some more Squish bundles, see below).
|
Fourth - you'll have to provide some additional repositories (and for the hooking into subprocesses even some more Squish bundles, see below).
|
||||||
These additional repositories are located inside ~/QtSDK/src or C:\QtSDK\src (depending on the OS you're on).
|
These additional repositories are located inside ~/QtSDK/src or C:\QtSDK\src (depending on the OS you're on).
|
||||||
|
@@ -41,10 +41,12 @@ class Targets:
|
|||||||
EMBEDDED_LINUX = 32
|
EMBEDDED_LINUX = 32
|
||||||
DESKTOP_480_MSVC2010 = 64
|
DESKTOP_480_MSVC2010 = 64
|
||||||
DESKTOP_501_DEFAULT = 128
|
DESKTOP_501_DEFAULT = 128
|
||||||
|
DESKTOP_521_DEFAULT = 256
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def desktopTargetClasses():
|
def desktopTargetClasses():
|
||||||
desktopTargets = Targets.DESKTOP_474_GCC | Targets.DESKTOP_480_GCC | Targets.DESKTOP_501_DEFAULT
|
desktopTargets = (Targets.DESKTOP_474_GCC | Targets.DESKTOP_480_GCC
|
||||||
|
| Targets.DESKTOP_501_DEFAULT | Targets.DESKTOP_521_DEFAULT)
|
||||||
if platform.system() in ('Windows', 'Microsoft'):
|
if platform.system() in ('Windows', 'Microsoft'):
|
||||||
desktopTargets |= Targets.DESKTOP_480_MSVC2010
|
desktopTargets |= Targets.DESKTOP_480_MSVC2010
|
||||||
return desktopTargets
|
return desktopTargets
|
||||||
@@ -67,6 +69,8 @@ class Targets:
|
|||||||
return "Desktop 480 MSVC2010"
|
return "Desktop 480 MSVC2010"
|
||||||
elif target == Targets.DESKTOP_501_DEFAULT:
|
elif target == Targets.DESKTOP_501_DEFAULT:
|
||||||
return "Desktop 501 default"
|
return "Desktop 501 default"
|
||||||
|
elif target == Targets.DESKTOP_521_DEFAULT:
|
||||||
|
return "Desktop 521 default"
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@@ -84,7 +88,7 @@ class Targets:
|
|||||||
def intToArray(targets):
|
def intToArray(targets):
|
||||||
available = [Targets.DESKTOP_474_GCC, Targets.DESKTOP_480_GCC, Targets.SIMULATOR, Targets.MAEMO5,
|
available = [Targets.DESKTOP_474_GCC, Targets.DESKTOP_480_GCC, Targets.SIMULATOR, Targets.MAEMO5,
|
||||||
Targets.HARMATTAN, Targets.EMBEDDED_LINUX, Targets.DESKTOP_480_MSVC2010,
|
Targets.HARMATTAN, Targets.EMBEDDED_LINUX, Targets.DESKTOP_480_MSVC2010,
|
||||||
Targets.DESKTOP_501_DEFAULT]
|
Targets.DESKTOP_501_DEFAULT, Targets.DESKTOP_521_DEFAULT]
|
||||||
return filter(lambda x: x & targets == x, available)
|
return filter(lambda x: x & targets == x, available)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@@ -358,7 +358,8 @@ def __chooseTargets__(targets=Targets.DESKTOP_474_GCC, availableTargets=None):
|
|||||||
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 = [Targets.DESKTOP_474_GCC, Targets.DESKTOP_480_GCC, Targets.DESKTOP_501_DEFAULT,
|
available = [Targets.DESKTOP_474_GCC, Targets.DESKTOP_480_GCC, Targets.DESKTOP_501_DEFAULT,
|
||||||
Targets.MAEMO5, Targets.EMBEDDED_LINUX, Targets.SIMULATOR, Targets.HARMATTAN]
|
Targets.DESKTOP_521_DEFAULT, Targets.MAEMO5, Targets.EMBEDDED_LINUX,
|
||||||
|
Targets.SIMULATOR, Targets.HARMATTAN]
|
||||||
if platform.system() in ('Windows', 'Microsoft'):
|
if platform.system() in ('Windows', 'Microsoft'):
|
||||||
available.remove(Targets.EMBEDDED_LINUX)
|
available.remove(Targets.EMBEDDED_LINUX)
|
||||||
available.append(Targets.DESKTOP_480_MSVC2010)
|
available.append(Targets.DESKTOP_480_MSVC2010)
|
||||||
@@ -559,7 +560,7 @@ def __getSupportedPlatforms__(text, templateName, getAsStrings=False):
|
|||||||
result.append(Targets.EMBEDDED_LINUX)
|
result.append(Targets.EMBEDDED_LINUX)
|
||||||
elif platform.system() in ('Windows', 'Microsoft'):
|
elif platform.system() in ('Windows', 'Microsoft'):
|
||||||
result.append(Targets.DESKTOP_480_MSVC2010)
|
result.append(Targets.DESKTOP_480_MSVC2010)
|
||||||
result.append(Targets.DESKTOP_501_DEFAULT)
|
result.extend([Targets.DESKTOP_501_DEFAULT, Targets.DESKTOP_521_DEFAULT])
|
||||||
if 'MeeGo/Harmattan' in supports:
|
if 'MeeGo/Harmattan' in supports:
|
||||||
result.append(Targets.HARMATTAN)
|
result.append(Targets.HARMATTAN)
|
||||||
if 'Maemo/Fremantle' in supports:
|
if 'Maemo/Fremantle' in supports:
|
||||||
@@ -569,7 +570,7 @@ def __getSupportedPlatforms__(text, templateName, getAsStrings=False):
|
|||||||
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 = [Targets.DESKTOP_474_GCC, Targets.DESKTOP_480_GCC, Targets.DESKTOP_501_DEFAULT,
|
result = [Targets.DESKTOP_474_GCC, Targets.DESKTOP_480_GCC, Targets.DESKTOP_501_DEFAULT,
|
||||||
Targets.MAEMO5, Targets.SIMULATOR, Targets.HARMATTAN]
|
Targets.DESKTOP_521_DEFAULT, Targets.MAEMO5, Targets.SIMULATOR, Targets.HARMATTAN]
|
||||||
if platform.system() in ('Windows', 'Microsoft'):
|
if platform.system() in ('Windows', 'Microsoft'):
|
||||||
result.append(Targets.DESKTOP_480_MSVC2010)
|
result.append(Targets.DESKTOP_480_MSVC2010)
|
||||||
else:
|
else:
|
||||||
|
@@ -33,8 +33,8 @@ def main():
|
|||||||
startApplication("qtcreator" + SettingsPath)
|
startApplication("qtcreator" + SettingsPath)
|
||||||
if not startedWithoutPluginError():
|
if not startedWithoutPluginError():
|
||||||
return
|
return
|
||||||
# TODO provide Qt5.2/Qt5.1 to enable QtQuick2 testing
|
for targ, qVer in [[Targets.DESKTOP_480_GCC, "1.1"], [Targets.DESKTOP_521_DEFAULT, "2.1"],
|
||||||
for targ, qVer in {Targets.DESKTOP_480_GCC:"1.1"}.items(): # Targets.DESKTOP_501_DEFAULT:2}.items():
|
[Targets.DESKTOP_521_DEFAULT, "2.2"]]:
|
||||||
# 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, targets=targ,
|
checkedTargets, projectName = createNewQtQuickApplication(workingDir, targets=targ,
|
||||||
|
@@ -33,7 +33,7 @@ def main():
|
|||||||
startApplication("qtcreator" + SettingsPath)
|
startApplication("qtcreator" + SettingsPath)
|
||||||
if not startedWithoutPluginError():
|
if not startedWithoutPluginError():
|
||||||
return
|
return
|
||||||
for quickVersion in ["1.1"]:#, "2.1", "2.2"]: # TODO add Qt5.2 and/or Qt5.1 kit to enable these
|
for quickVersion in ["1.1", "2.1", "2.2"]:
|
||||||
# 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()
|
||||||
projectName = createNewQtQuickUI(workingDir, quickVersion)
|
projectName = createNewQtQuickUI(workingDir, quickVersion)
|
||||||
|
@@ -33,7 +33,8 @@ def main():
|
|||||||
startApplication("qtcreator" + SettingsPath)
|
startApplication("qtcreator" + SettingsPath)
|
||||||
if not startedWithoutPluginError():
|
if not startedWithoutPluginError():
|
||||||
return
|
return
|
||||||
for targ, quickVer in {Targets.DESKTOP_480_GCC:1, Targets.DESKTOP_501_DEFAULT:2}.items():
|
for targ, quickVer in [[Targets.DESKTOP_480_GCC, 1], [Targets.DESKTOP_501_DEFAULT, 2],
|
||||||
|
[Targets.DESKTOP_521_DEFAULT, 2]]:
|
||||||
# using a temporary directory won't mess up a potentially existing
|
# using a temporary directory won't mess up a potentially existing
|
||||||
createNewQmlExtension(tempDir(), targ, quickVer)
|
createNewQmlExtension(tempDir(), targ, quickVer)
|
||||||
# wait for parsing to complete
|
# wait for parsing to complete
|
||||||
|
Reference in New Issue
Block a user