forked from qt-creator/qt-creator
SquishTests: More expected build issues
Expect build issues if the kit does not support the minimum cpp standard needed by the project. Additionally exclude the kit explicitly if the compiler is too old to understand the needed minimum cpp standard. Change-Id: I0cf0ad17b2cd68ba990d3360a8628ddd7fe507bd Reviewed-by: Robert Löhning <robert.loehning@qt.io>
This commit is contained in:
@@ -13,9 +13,23 @@ def main():
|
||||
availableConfigs = iterateBuildConfigs()
|
||||
if not availableConfigs:
|
||||
test.fatal("Haven't found a suitable Qt version - leaving without building.")
|
||||
|
||||
expectConfigureToFail = []
|
||||
expectBuildToFail = []
|
||||
if platform.system() in ('Microsoft', 'Windows'):
|
||||
expectConfigureToFail = [ Targets.DESKTOP_5_4_1_GCC ] # gcc 4.9 does not know C++17
|
||||
|
||||
# Qt5.10 does not default enable C++17
|
||||
expectBuildToFail = [ Targets.DESKTOP_5_10_1_DEFAULT ]
|
||||
|
||||
for kit, config in availableConfigs:
|
||||
selectBuildConfig(kit, config)
|
||||
test.log("Testing build configuration: " + config)
|
||||
if runAndCloseApp() == None:
|
||||
checkCompile()
|
||||
if kit in expectConfigureToFail:
|
||||
test.log("Not performing build test. Kit '%s' not supported."
|
||||
% Targets.getStringForTarget(kit))
|
||||
continue
|
||||
buildFailExpected = kit in expectBuildToFail
|
||||
if runAndCloseApp(buildFailExpected) == None:
|
||||
checkCompile(buildFailExpected)
|
||||
invokeMenuItem("File", "Exit")
|
||||
|
Reference in New Issue
Block a user