| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """Dart2js buildbot steps | 7 """Dart2js buildbot steps |
| 8 | 8 |
| 9 Runs tests for the dart2js compiler. | 9 Runs tests for the dart2js compiler. |
| 10 """ | 10 """ |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 if builder_name: | 73 if builder_name: |
| 74 dart2js_pattern = re.match(DART2JS_BUILDER, builder_name) | 74 dart2js_pattern = re.match(DART2JS_BUILDER, builder_name) |
| 75 web_pattern = re.match(WEB_BUILDER, builder_name) | 75 web_pattern = re.match(WEB_BUILDER, builder_name) |
| 76 | 76 |
| 77 if web_pattern: | 77 if web_pattern: |
| 78 compiler = 'dart2js' | 78 compiler = 'dart2js' |
| 79 runtime = web_pattern.group(2) | 79 runtime = web_pattern.group(2) |
| 80 system = web_pattern.group(3) | 80 system = web_pattern.group(3) |
| 81 mode = 'release' | 81 mode = 'release' |
| 82 shard_index = web_pattern.group(3) | 82 shard_index = web_pattern.group(4) |
| 83 total_shards = web_pattern.group(4) | 83 total_shards = web_pattern.group(5) |
| 84 elif dart2js_pattern: | 84 elif dart2js_pattern: |
| 85 compiler = 'dart2js' | 85 compiler = 'dart2js' |
| 86 runtime = 'd8' | 86 runtime = 'd8' |
| 87 system = dart2js_pattern.group(1) | 87 system = dart2js_pattern.group(1) |
| 88 mode = dart2js_pattern.group(2) | 88 mode = dart2js_pattern.group(2) |
| 89 # The valid naming parts for checked and host-checked are: | 89 # The valid naming parts for checked and host-checked are: |
| 90 # Empty: checked=False, host_checked=False | 90 # Empty: checked=False, host_checked=False |
| 91 # -checked: checked=True, host_checked=False | 91 # -checked: checked=True, host_checked=False |
| 92 # -host-checked: checked=False, host_checked=True | 92 # -host-checked: checked=False, host_checked=True |
| 93 # -checked-host-checked: checked=True, host_checked=True | 93 # -checked-host-checked: checked=True, host_checked=True |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 if (status == 0 and system == 'linux' and runtime == 'chrome'): | 373 if (status == 0 and system == 'linux' and runtime == 'chrome'): |
| 374 status = TestCompiler(runtime, mode, system, test_flags + ['--checked'], | 374 status = TestCompiler(runtime, mode, system, test_flags + ['--checked'], |
| 375 is_buildbot) | 375 is_buildbot) |
| 376 | 376 |
| 377 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime) | 377 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime) |
| 378 if status != 0: print '@@@STEP_FAILURE@@@' | 378 if status != 0: print '@@@STEP_FAILURE@@@' |
| 379 return status | 379 return status |
| 380 | 380 |
| 381 if __name__ == '__main__': | 381 if __name__ == '__main__': |
| 382 sys.exit(main()) | 382 sys.exit(main()) |
| OLD | NEW |