| 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 Shared code for use in the buildbot scripts. | 8 Shared code for use in the buildbot scripts. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 - minified: True if we should minify the code, otherwise False | 34 - minified: True if we should minify the code, otherwise False |
| 35 - shard_index: The shard we are running, None when not specified. | 35 - shard_index: The shard we are running, None when not specified. |
| 36 - total_shards: The total number of shards, None when not specified. | 36 - total_shards: The total number of shards, None when not specified. |
| 37 - is_buildbot: True if we are on a buildbot (or emulating it). | 37 - is_buildbot: True if we are on a buildbot (or emulating it). |
| 38 - test_set: Specification of a non standard test set or None. | 38 - test_set: Specification of a non standard test set or None. |
| 39 - csp: This is using csp when running | 39 - csp: This is using csp when running |
| 40 - arch: The architecture to build on. | 40 - arch: The architecture to build on. |
| 41 - dart2js_full: Boolean indicating whether this builder will run dart2js | 41 - dart2js_full: Boolean indicating whether this builder will run dart2js |
| 42 on several different runtimes. | 42 on several different runtimes. |
| 43 - builder_tag: A tag indicating a special builder setup. | 43 - builder_tag: A tag indicating a special builder setup. |
| 44 - cps_ir: Run the compiler with the cps based backend |
| 44 """ | 45 """ |
| 45 def __init__(self, compiler, runtime, mode, system, checked=False, | 46 def __init__(self, compiler, runtime, mode, system, checked=False, |
| 46 host_checked=False, minified=False, shard_index=None, | 47 host_checked=False, minified=False, shard_index=None, |
| 47 total_shards=None, is_buildbot=False, test_set=None, | 48 total_shards=None, is_buildbot=False, test_set=None, |
| 48 csp=None, arch=None, dart2js_full=False, builder_tag=None, | 49 csp=None, arch=None, dart2js_full=False, builder_tag=None, |
| 49 batch=False): | 50 batch=False, cps_ir=False): |
| 50 self.compiler = compiler | 51 self.compiler = compiler |
| 51 self.runtime = runtime | 52 self.runtime = runtime |
| 52 self.mode = mode | 53 self.mode = mode |
| 53 self.system = system | 54 self.system = system |
| 54 self.checked = checked | 55 self.checked = checked |
| 55 self.host_checked = host_checked | 56 self.host_checked = host_checked |
| 56 self.minified = minified | 57 self.minified = minified |
| 57 self.shard_index = shard_index | 58 self.shard_index = shard_index |
| 58 self.total_shards = total_shards | 59 self.total_shards = total_shards |
| 59 self.is_buildbot = is_buildbot | 60 self.is_buildbot = is_buildbot |
| 60 self.test_set = test_set | 61 self.test_set = test_set |
| 61 self.csp = csp | 62 self.csp = csp |
| 62 self.dart2js_full = dart2js_full | 63 self.dart2js_full = dart2js_full |
| 63 self.builder_tag = builder_tag | 64 self.builder_tag = builder_tag |
| 64 self.batch = batch | 65 self.batch = batch |
| 66 self.cps_ir = cps_ir |
| 65 if (arch == None): | 67 if (arch == None): |
| 66 self.arch = 'ia32' | 68 self.arch = 'ia32' |
| 67 else: | 69 else: |
| 68 self.arch = arch | 70 self.arch = arch |
| 69 | 71 |
| 70 def PrintBuildInfo(self): | 72 def PrintBuildInfo(self): |
| 71 shard_description = "" | 73 shard_description = "" |
| 72 if self.shard_index: | 74 if self.shard_index: |
| 73 shard_description = " shard %s of %s" % (self.shard_index, | 75 shard_description = " shard %s of %s" % (self.shard_index, |
| 74 self.total_shards) | 76 self.total_shards) |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 if exit_code != 0: | 254 if exit_code != 0: |
| 253 raise OSError(exit_code) | 255 raise OSError(exit_code) |
| 254 | 256 |
| 255 | 257 |
| 256 def GetStepName(name, flags): | 258 def GetStepName(name, flags): |
| 257 """ | 259 """ |
| 258 Filters out flags with '=' as this breaks the /stats feature of the buildbot. | 260 Filters out flags with '=' as this breaks the /stats feature of the buildbot. |
| 259 """ | 261 """ |
| 260 flags = [x for x in flags if not '=' in x] | 262 flags = [x for x in flags if not '=' in x] |
| 261 return ('%s tests %s' % (name, ' '.join(flags))).strip() | 263 return ('%s tests %s' % (name, ' '.join(flags))).strip() |
| OLD | NEW |