diff options
author | Robert Loehning <robert.loehning@nokia.com> | 2012-05-21 16:24:23 +0200 |
---|---|---|
committer | Robert Löhning <robert.loehning@nokia.com> | 2012-05-21 17:12:39 +0200 |
commit | a71b76867540d63c9c46899f288249d92924a03c (patch) | |
tree | f7b345beb7035136aa81844a0f676f3a1bf15e31 /tests | |
parent | 525cf2353e3a4d2957f0992a8078175c640aa1f4 (diff) | |
download | qt-creator-a71b76867540d63c9c46899f288249d92924a03c.tar.gz |
Squish: Added fatals when no Qt version was found
Change-Id: I1d1f4f378ef60107a488477bce40dacaabbe4109
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
Diffstat (limited to 'tests')
6 files changed, 24 insertions, 6 deletions
diff --git a/tests/system/suite_CCOM/tst_CCOM01/test.py b/tests/system/suite_CCOM/tst_CCOM01/test.py index 733943d160..985ec0bcf9 100755 --- a/tests/system/suite_CCOM/tst_CCOM01/test.py +++ b/tests/system/suite_CCOM/tst_CCOM01/test.py @@ -14,7 +14,10 @@ def main(): # open example project openQmakeProject(examplePath) # build and wait until finished - on all (except Qt 4.7.0 (would fail)) build configurations - for config in iterateBuildConfigs(1, 0, "(?!.*4\.7\.0.*)"): + availableConfigs = iterateBuildConfigs(1, 0, "(?!.*4\.7\.0.*)") + if not availableConfigs: + test.fatal("Haven't found a suitable Qt version (anything except Qt 4.7.0) - leaving without building.") + for config in availableConfigs: selectBuildConfig(1, 0, config) # try to build project test.log("Testing build configuration: " + config) diff --git a/tests/system/suite_SCOM/tst_SCOM01/test.py b/tests/system/suite_SCOM/tst_SCOM01/test.py index 4b4fb5f21e..0bc53c3912 100644 --- a/tests/system/suite_SCOM/tst_SCOM01/test.py +++ b/tests/system/suite_SCOM/tst_SCOM01/test.py @@ -7,7 +7,10 @@ def main(): # create qt quick application createNewQtQuickApplication(tempDir(), "SampleApp") # build it - on all (except Qt 4.7.0 (would fail)) build configurations - for config in iterateBuildConfigs(1, 0, "(?!.*4\.7\.0.*)"): + availableConfigs = iterateBuildConfigs(1, 0, "(?!.*4\.7\.0.*)") + if not availableConfigs: + test.fatal("Haven't found a suitable Qt version (anything except Qt 4.7.0) - leaving without building.") + for config in availableConfigs: selectBuildConfig(1, 0, config) # try to compile test.log("Testing build configuration: " + config) diff --git a/tests/system/suite_SCOM/tst_SCOM04/test.py b/tests/system/suite_SCOM/tst_SCOM04/test.py index fecef36c57..bb4a99f10e 100644 --- a/tests/system/suite_SCOM/tst_SCOM04/test.py +++ b/tests/system/suite_SCOM/tst_SCOM04/test.py @@ -17,7 +17,10 @@ def main(): # save all invokeMenuItem("File", "Save All") # build it - on all (except Qt 4.7.0 (would fail)) build configurations - for config in iterateBuildConfigs(1, 0, "(?!.*4\.7\.0.*)"): + availableConfigs = iterateBuildConfigs(1, 0, "(?!.*4\.7\.0.*)") + if not availableConfigs: + test.fatal("Haven't found a suitable Qt version (anything except Qt 4.7.0) - leaving without building.") + for config in availableConfigs: selectBuildConfig(1, 0, config) # try to compile test.log("Testing build configuration: " + config) diff --git a/tests/system/suite_debugger/tst_build_new_project/test.py b/tests/system/suite_debugger/tst_build_new_project/test.py index 73a46f61ee..cd33ccfbbf 100644 --- a/tests/system/suite_debugger/tst_build_new_project/test.py +++ b/tests/system/suite_debugger/tst_build_new_project/test.py @@ -6,7 +6,10 @@ project = "SquishProject" def main(): startApplication("qtcreator" + SettingsPath) createProject_Qt_Console(projectsPath, project) - for config in iterateBuildConfigs(1, 0): + availableConfigs = iterateBuildConfigs(1, 0) + if not availableConfigs: + test.fatal("Haven't found a suitable Qt version - leaving without building.") + for config in availableConfigs: selectBuildConfig(1, 0, config) test.log("Testing build configuration: " + config) runAndCloseApp() diff --git a/tests/system/suite_debugger/tst_cli_output_console/test.py b/tests/system/suite_debugger/tst_cli_output_console/test.py index 50c8a7645c..692c01a5bd 100644 --- a/tests/system/suite_debugger/tst_cli_output_console/test.py +++ b/tests/system/suite_debugger/tst_cli_output_console/test.py @@ -37,7 +37,10 @@ def main(): test.verify("CONFIG += console" in str(proEditor.plainText), "Verifying that program is configured with console") setRunInTerminal(1, 0, False) - for config in iterateBuildConfigs(1, 0): + availableConfigs = iterateBuildConfigs(1, 0) + if not availableConfigs: + test.fatal("Haven't found a suitable Qt version - leaving without building.") + for config in availableConfigs: selectBuildConfig(1, 0, config) test.log("Testing build configuration: " + config) diff --git a/tests/system/suite_general/tst_build_speedcrunch/test.py b/tests/system/suite_general/tst_build_speedcrunch/test.py index cd2c09879a..147cc967fc 100644 --- a/tests/system/suite_general/tst_build_speedcrunch/test.py +++ b/tests/system/suite_general/tst_build_speedcrunch/test.py @@ -27,7 +27,10 @@ def main(): fancyToolButton = waitForObject(":*Qt Creator_Core::Internal::FancyToolButton") qtVerPattern = re.compile("\d\.\d(\.\d+)?") - for config in iterateBuildConfigs(1, 0, "(Desktop )?Qt.*Release"): + availableConfigs = iterateBuildConfigs(1, 0, "(Desktop )?Qt.*Release") + if not availableConfigs: + test.fatal("Haven't found a suitable Qt version (need Release build) - leaving without building.") + for config in availableConfigs: qtVersion = qtVerPattern.search(config) if qtVersion: qtVersion = qtVersion.group() |