| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 cmd.extend([sys.executable, | 137 cmd.extend([sys.executable, |
| 138 os.path.join(os.curdir, 'tools', 'test.py'), | 138 os.path.join(os.curdir, 'tools', 'test.py'), |
| 139 '--step_name=' + step_name, | 139 '--step_name=' + step_name, |
| 140 '--mode=' + mode, | 140 '--mode=' + mode, |
| 141 '--compiler=' + compiler, | 141 '--compiler=' + compiler, |
| 142 '--runtime=' + runtime, | 142 '--runtime=' + runtime, |
| 143 '--arch=' + arch, | 143 '--arch=' + arch, |
| 144 '--time', | 144 '--time', |
| 145 '--use-sdk', | 145 '--use-sdk', |
| 146 '--report', | 146 '--report', |
| 147 '--write-debug-log']) | 147 '--write-debug-log', |
| 148 '--write-test-outcome-log']) |
| 148 | 149 |
| 149 if user_test == 'yes': | 150 if user_test == 'yes': |
| 150 cmd.append('--progress=color') | 151 cmd.append('--progress=color') |
| 151 else: | 152 else: |
| 152 cmd.extend(['--progress=buildbot', '-v']) | 153 cmd.extend(['--progress=buildbot', '-v']) |
| 153 | 154 |
| 154 if runtime == 'safari': | 155 if runtime == 'safari': |
| 155 cmd.append('--clear_safari_cache') | 156 cmd.append('--clear_safari_cache') |
| 156 | 157 |
| 157 global IsFirstTestStepCall | 158 global IsFirstTestStepCall |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 """ | 334 """ |
| 334 with bot.BuildStep('Build SDK and d8'): | 335 with bot.BuildStep('Build SDK and d8'): |
| 335 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 336 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 336 '--arch=' + build_info.arch, 'dart2js_bot'] | 337 '--arch=' + build_info.arch, 'dart2js_bot'] |
| 337 print 'Build SDK and d8: %s' % (' '.join(args)) | 338 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 338 bot.RunProcess(args) | 339 bot.RunProcess(args) |
| 339 | 340 |
| 340 | 341 |
| 341 if __name__ == '__main__': | 342 if __name__ == '__main__': |
| 342 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 343 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |