| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
| 5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
| 6 | 6 |
| 7 """ | 7 """ |
| 8 Dart2js buildbot steps | 8 Dart2js buildbot steps |
| 9 | 9 |
| 10 Runs tests for the dart2js compiler. | 10 Runs tests for the dart2js compiler. |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 except IndexError: | 205 except IndexError: |
| 206 # Failed to obtain version information. Continue running tests. | 206 # Failed to obtain version information. Continue running tests. |
| 207 pass | 207 pass |
| 208 | 208 |
| 209 if runtime == 'd8': | 209 if runtime == 'd8': |
| 210 # The dart2js compiler isn't self-hosted (yet) so we run its | 210 # The dart2js compiler isn't self-hosted (yet) so we run its |
| 211 # unit tests on the VM. We avoid doing this on the builders | 211 # unit tests on the VM. We avoid doing this on the builders |
| 212 # that run the browser tests to cut down on the cycle time. | 212 # that run the browser tests to cut down on the cycle time. |
| 213 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js'], flags) | 213 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js'], flags) |
| 214 | 214 |
| 215 if not (system.startswith('win') and runtime.startswith('ie')): | 215 # Run the default set of test suites. |
| 216 # Run the default set of test suites. | 216 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags) |
| 217 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags) | 217 # TODO(kasperl): Consider running peg and css tests too. |
| 218 | 218 extras = ['dart2js_extra', 'dart2js_native', 'dart2js_foreign'] |
| 219 # TODO(kasperl): Consider running peg and css tests too. | 219 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, flags) |
| 220 extras = ['dart2js_extra', 'dart2js_native', 'dart2js_foreign'] | |
| 221 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, flags) | |
| 222 else: | |
| 223 # TODO(ricow): Enable standard sharding for IE bots when we have more vms. | |
| 224 if test_set == 'html': | |
| 225 TestStep("dart2js", mode, system, 'dart2js', runtime, ['html'], flags) | |
| 226 elif test_set == 'all': | |
| 227 TestStep("dart2js", mode, system, 'dart2js', runtime, ['dartc', | |
| 228 'samples', 'standalone', 'corelib', 'co19', 'language', 'isolate', | |
| 229 'vm', 'json', 'benchmark_smoke', 'dartdoc', 'utils', 'pub', 'lib'], | |
| 230 flags) | |
| 231 extras = ['dart2js_extra', 'dart2js_native', 'dart2js_foreign'] | |
| 232 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, | |
| 233 flags) | |
| 234 | |
| 235 | 220 |
| 236 def _DeleteTempWebdriverProfiles(directory): | 221 def _DeleteTempWebdriverProfiles(directory): |
| 237 """Find all the firefox profiles in a particular directory and delete them.""" | 222 """Find all the firefox profiles in a particular directory and delete them.""" |
| 238 for f in os.listdir(directory): | 223 for f in os.listdir(directory): |
| 239 item = os.path.join(directory, f) | 224 item = os.path.join(directory, f) |
| 240 if os.path.isdir(item) and (f.startswith('tmp') or f.startswith('opera')): | 225 if os.path.isdir(item) and (f.startswith('tmp') or f.startswith('opera')): |
| 241 subprocess.Popen('rm -rf %s' % item, shell=True) | 226 subprocess.Popen('rm -rf %s' % item, shell=True) |
| 242 | 227 |
| 243 | 228 |
| 244 def CleanUpTemporaryFiles(system, browser): | 229 def CleanUpTemporaryFiles(system, browser): |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 """ | 306 """ |
| 322 with bot.BuildStep('Build SDK and d8'): | 307 with bot.BuildStep('Build SDK and d8'): |
| 323 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 308 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 324 'dart2js_bot'] | 309 'dart2js_bot'] |
| 325 print 'Build SDK and d8: %s' % (' '.join(args)) | 310 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 326 bot.RunProcess(args) | 311 bot.RunProcess(args) |
| 327 | 312 |
| 328 | 313 |
| 329 if __name__ == '__main__': | 314 if __name__ == '__main__': |
| 330 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 315 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |