| 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 | 342 |
| 343 def RunCompilerTests(build_info): | 343 def RunCompilerTests(build_info): |
| 344 test_flags = [] | 344 test_flags = [] |
| 345 if build_info.shard_index: | 345 if build_info.shard_index: |
| 346 test_flags = ['--shards=%s' % build_info.total_shards, | 346 test_flags = ['--shards=%s' % build_info.total_shards, |
| 347 '--shard=%s' % build_info.shard_index] | 347 '--shard=%s' % build_info.shard_index] |
| 348 if build_info.checked: test_flags += ['--checked'] | 348 if build_info.checked: test_flags += ['--checked'] |
| 349 if build_info.minified: test_flags += ['--minified'] | 349 if build_info.minified: test_flags += ['--minified'] |
| 350 if build_info.host_checked: test_flags += ['--host-checked'] | 350 if build_info.host_checked: test_flags += ['--host-checked'] |
| 351 if build_info.batch: test_flags += ['--dart2js-batch'] | 351 if build_info.batch: test_flags += ['--dart2js-batch'] |
| 352 if build_info.builder_tag: test_flags += ['--builder-tag=' + |
| 353 build_info.builder_tag] |
| 352 | 354 |
| 353 if build_info.dart2js_full: | 355 if build_info.dart2js_full: |
| 354 compiler = build_info.compiler | 356 compiler = build_info.compiler |
| 355 assert compiler == 'dart2js' | 357 assert compiler == 'dart2js' |
| 356 system = build_info.system | 358 system = build_info.system |
| 357 arch = build_info.arch | 359 arch = build_info.arch |
| 358 mode = build_info.mode | 360 mode = build_info.mode |
| 359 is_buildbot = build_info.is_buildbot | 361 is_buildbot = build_info.is_buildbot |
| 360 | 362 |
| 361 config = build_info.builder_tag if system == 'windows' else system | 363 config = build_info.builder_tag if system == 'windows' else system |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 if build_info.mode == 'debug': | 400 if build_info.mode == 'debug': |
| 399 target = 'dart2js_bot_debug' | 401 target = 'dart2js_bot_debug' |
| 400 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 402 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 401 '--arch=' + build_info.arch, target] | 403 '--arch=' + build_info.arch, target] |
| 402 print 'Build SDK and d8: %s' % (' '.join(args)) | 404 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 403 bot.RunProcess(args) | 405 bot.RunProcess(args) |
| 404 | 406 |
| 405 | 407 |
| 406 if __name__ == '__main__': | 408 if __name__ == '__main__': |
| 407 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 409 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |