Chromium Code Reviews| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 203 try: | 203 try: |
| 204 print 'Version of %s: %s' % (runtime, output[-1]) | 204 print 'Version of %s: %s' % (runtime, output[-1]) |
| 205 except IndexError: | 205 except IndexError: |
| 206 # Failed to obtain version information. Continue running tests. | 206 # Failed to obtain version information. Continue running tests. |
| 207 pass | 207 pass |
| 208 | 208 |
| 209 if runtime == 'd8': | 209 if runtime == 'd8': |
| 210 # The dart2js compiler isn't self-hosted (yet) so we run its | 210 # The dart2js compiler isn't self-hosted (yet) so we run its |
| 211 # unit tests on the VM. We avoid doing this on the builders | 211 # unit tests on the VM. We avoid doing this on the builders |
| 212 # that run the browser tests to cut down on the cycle time. | 212 # that run the browser tests to cut down on the cycle time. |
| 213 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js'], flags) | 213 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js'], |
| 214 # Run the unit tests in checked mode (the VM's checked mode). | |
| 215 ['--checked']) | |
|
ricow1
2013/04/12 10:39:55
don't we already do this on the dart2js checked bu
| |
| 214 | 216 |
| 215 if system.startswith('win') and runtime.startswith('ie10'): | 217 if system.startswith('win') and runtime.startswith('ie10'): |
| 216 TestStep("dart2js", mode, system, 'dart2js', runtime, ['html'], flags) | 218 TestStep("dart2js", mode, system, 'dart2js', runtime, ['html'], flags) |
| 217 else: | 219 else: |
| 218 # Run the default set of test suites. | 220 # Run the default set of test suites. |
| 219 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags) | 221 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags) |
| 220 | 222 |
| 221 # TODO(kasperl): Consider running peg and css tests too. | 223 # TODO(kasperl): Consider running peg and css tests too. |
| 222 extras = ['dart2js_extra', 'dart2js_native', 'dart2js_foreign'] | 224 extras = ['dart2js_extra', 'dart2js_native', 'dart2js_foreign'] |
| 223 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, flags) | 225 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, |
| 226 # Run this small test subset in checked mode. | |
| 227 flags + ['--host-checked']) | |
| 224 | 228 |
| 225 | 229 |
| 226 def _DeleteTempWebdriverProfiles(directory): | 230 def _DeleteTempWebdriverProfiles(directory): |
| 227 """Find all the firefox profiles in a particular directory and delete them.""" | 231 """Find all the firefox profiles in a particular directory and delete them.""" |
| 228 for f in os.listdir(directory): | 232 for f in os.listdir(directory): |
| 229 item = os.path.join(directory, f) | 233 item = os.path.join(directory, f) |
| 230 if os.path.isdir(item) and (f.startswith('tmp') or f.startswith('opera')): | 234 if os.path.isdir(item) and (f.startswith('tmp') or f.startswith('opera')): |
| 231 subprocess.Popen('rm -rf %s' % item, shell=True) | 235 subprocess.Popen('rm -rf %s' % item, shell=True) |
| 232 | 236 |
| 233 | 237 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 311 """ | 315 """ |
| 312 with bot.BuildStep('Build SDK and d8'): | 316 with bot.BuildStep('Build SDK and d8'): |
| 313 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 317 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 314 'dart2js_bot'] | 318 'dart2js_bot'] |
| 315 print 'Build SDK and d8: %s' % (' '.join(args)) | 319 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 316 bot.RunProcess(args) | 320 bot.RunProcess(args) |
| 317 | 321 |
| 318 | 322 |
| 319 if __name__ == '__main__': | 323 if __name__ == '__main__': |
| 320 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 324 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |