| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 if IsFirstTestStepCall: | 176 if IsFirstTestStepCall: |
| 177 IsFirstTestStepCall = False | 177 IsFirstTestStepCall = False |
| 178 else: | 178 else: |
| 179 cmd.append('--append_logs') | 179 cmd.append('--append_logs') |
| 180 | 180 |
| 181 if flags: | 181 if flags: |
| 182 cmd.extend(flags) | 182 cmd.extend(flags) |
| 183 cmd.extend(targets) | 183 cmd.extend(targets) |
| 184 | 184 |
| 185 print 'Running: %s' % (' '.join(map(lambda arg: '"%s"' % arg, cmd))) | 185 print 'Running: %s' % (' '.join(map(lambda arg: '"%s"' % arg, cmd))) |
| 186 sys.stdout.flush() |
| 186 bot.RunProcess(cmd) | 187 bot.RunProcess(cmd) |
| 187 | 188 |
| 188 | 189 |
| 189 def TestCompiler(runtime, mode, system, flags, is_buildbot, test_set, arch): | 190 def TestCompiler(runtime, mode, system, flags, is_buildbot, test_set, arch): |
| 190 """ test the compiler. | 191 """ test the compiler. |
| 191 Args: | 192 Args: |
| 192 - runtime: either 'd8', 'jsshell', or one of the browsers, see GetBuildInfo | 193 - runtime: either 'd8', 'jsshell', or one of the browsers, see GetBuildInfo |
| 193 - mode: either 'debug' or 'release' | 194 - mode: either 'debug' or 'release' |
| 194 - system: either 'linux', 'mac', 'windows' | 195 - system: either 'linux', 'mac', 'windows' |
| 195 - flags: extra flags to pass to test.dart | 196 - flags: extra flags to pass to test.dart |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 """ | 385 """ |
| 385 with bot.BuildStep('Build SDK and d8'): | 386 with bot.BuildStep('Build SDK and d8'): |
| 386 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 387 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 387 '--arch=' + build_info.arch, 'dart2js_bot'] | 388 '--arch=' + build_info.arch, 'dart2js_bot'] |
| 388 print 'Build SDK and d8: %s' % (' '.join(args)) | 389 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 389 bot.RunProcess(args) | 390 bot.RunProcess(args) |
| 390 | 391 |
| 391 | 392 |
| 392 if __name__ == '__main__': | 393 if __name__ == '__main__': |
| 393 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 394 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |