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 20 matching lines...) Expand all Loading... | |
31 IE_VERSIONS = ['ie10', 'ie11'] | 31 IE_VERSIONS = ['ie10', 'ie11'] |
32 | 32 |
33 DART2JS_FULL_CONFIGURATIONS = { | 33 DART2JS_FULL_CONFIGURATIONS = { |
34 'linux' : [ | 34 'linux' : [ |
35 {'runtime' : 'ff'}, | 35 {'runtime' : 'ff'}, |
36 {'runtime' : 'chrome'}, | 36 {'runtime' : 'chrome'}, |
37 ], | 37 ], |
38 'mac' : [ ], | 38 'mac' : [ ], |
39 'windows-ie10' : [ | 39 'windows-ie10' : [ |
40 {'runtime' : 'ie10'}, | 40 {'runtime' : 'ie10'}, |
41 {'runtime' : 'ie10', 'additional_flags' : ['--checked']}, | |
42 {'runtime' : 'chrome'}, | 41 {'runtime' : 'chrome'}, |
43 ], | 42 ], |
44 'windows-ie11' : [ | 43 'windows-ie11' : [ |
45 {'runtime' : 'ie11'}, | 44 {'runtime' : 'ie11'}, |
46 {'runtime' : 'ie11', 'additional_flags' : ['--checked']}, | |
47 {'runtime' : 'ff'}, | 45 {'runtime' : 'ff'}, |
48 ], | 46 ], |
49 } | 47 } |
50 | 48 |
51 | 49 |
52 def GetBuildInfo(builder_name, is_buildbot): | 50 def GetBuildInfo(builder_name, is_buildbot): |
53 """Returns a BuildInfo object for the current buildbot based on the | 51 """Returns a BuildInfo object for the current buildbot based on the |
54 name of the builder. | 52 name of the builder. |
55 """ | 53 """ |
56 compiler = None | 54 compiler = None |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
283 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js', 'try'], | 281 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js', 'try'], |
284 unit_test_flags, arch) | 282 unit_test_flags, arch) |
285 | 283 |
286 if compiler == 'dart2js' and runtime == 'drt': | 284 if compiler == 'dart2js' and runtime == 'drt': |
287 # Ensure that we run the "try" tests on Content Shell. | 285 # Ensure that we run the "try" tests on Content Shell. |
288 TestStep("incremental_compilation", mode, system, 'none', runtime, | 286 TestStep("incremental_compilation", mode, system, 'none', runtime, |
289 ['try'], unit_test_flags, arch) | 287 ['try'], unit_test_flags, arch) |
290 | 288 |
291 if compiler == 'dart2js' and runtime in ['ie10', 'ie11']: | 289 if compiler == 'dart2js' and runtime in ['ie10', 'ie11']: |
292 TestStep(compiler, mode, system, compiler, runtime, | 290 TestStep(compiler, mode, system, compiler, runtime, |
293 ['html', 'pkg', 'samples'], flags, arch) | 291 ['html', 'pkg', 'samples', 'co19'], flags, arch) |
ricow1
2015/01/26 09:25:19
we should remove the list all together, but I am f
| |
294 else: | 292 else: |
295 # Run the default set of test suites. | 293 # Run the default set of test suites. |
296 TestStep(compiler, mode, system, compiler, | 294 TestStep(compiler, mode, system, compiler, |
297 runtime, [], flags, arch) | 295 runtime, [], flags, arch) |
298 | 296 |
299 if compiler == 'dart2js': | 297 if compiler == 'dart2js': |
300 # TODO(kasperl): Consider running peg and css tests too. | 298 # TODO(kasperl): Consider running peg and css tests too. |
301 extras = ['dart2js_extra', 'dart2js_native'] | 299 extras = ['dart2js_extra', 'dart2js_native'] |
302 extras_flags = flags | 300 extras_flags = flags |
303 if (system == 'linux' | 301 if (system == 'linux' |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
408 if build_info.mode == 'debug': | 406 if build_info.mode == 'debug': |
409 target = 'dart2js_bot_debug' | 407 target = 'dart2js_bot_debug' |
410 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 408 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
411 '--arch=' + build_info.arch, target] | 409 '--arch=' + build_info.arch, target] |
412 print 'Build SDK and d8: %s' % (' '.join(args)) | 410 print 'Build SDK and d8: %s' % (' '.join(args)) |
413 bot.RunProcess(args) | 411 bot.RunProcess(args) |
414 | 412 |
415 | 413 |
416 if __name__ == '__main__': | 414 if __name__ == '__main__': |
417 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 415 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
OLD | NEW |