Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: dart/tools/bots/compiler.py

Issue 15337003: Shard dart2js unit tests as well. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 try: 212 try:
213 print 'Version of %s: %s' % (runtime, output[-1]) 213 print 'Version of %s: %s' % (runtime, output[-1])
214 except IndexError: 214 except IndexError:
215 # Failed to obtain version information. Continue running tests. 215 # Failed to obtain version information. Continue running tests.
216 pass 216 pass
217 217
218 if runtime == 'd8': 218 if runtime == 'd8':
219 # The dart2js compiler isn't self-hosted (yet) so we run its 219 # The dart2js compiler isn't self-hosted (yet) so we run its
220 # unit tests on the VM. We avoid doing this on the builders 220 # unit tests on the VM. We avoid doing this on the builders
221 # that run the browser tests to cut down on the cycle time. 221 # that run the browser tests to cut down on the cycle time.
222 unit_test_flags = [flag for flag in flags if flag.startswith('--shard')]
223 # Run the unit tests in checked mode (the VM's checked mode).
ricow1 2013/05/21 10:26:24 We already do this on the checked mode bots, why n
ahe 2013/05/21 11:41:33 We are not passing the "--checked" flag twice. Al
kustermann 2013/05/21 11:44:57 In addition to that, test_options.dart will throw
224 unit_test_flags.append('--checked')
222 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js'], 225 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js'],
223 # Run the unit tests in checked mode (the VM's checked mode). 226 unit_test_flags)
224 ['--checked'])
225 227
226 if system.startswith('win') and runtime.startswith('ie10'): 228 if system.startswith('win') and runtime.startswith('ie10'):
227 TestStep("dart2js", mode, system, 'dart2js', runtime, ['html'], flags) 229 TestStep("dart2js", mode, system, 'dart2js', runtime, ['html'], flags)
228 else: 230 else:
229 # Run the default set of test suites. 231 # Run the default set of test suites.
230 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags) 232 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags)
231 233
232 # TODO(kasperl): Consider running peg and css tests too. 234 # TODO(kasperl): Consider running peg and css tests too.
233 extras = ['dart2js_extra', 'dart2js_native', 'dart2js_foreign'] 235 extras = ['dart2js_extra', 'dart2js_native', 'dart2js_foreign']
234 extras_flags = flags 236 extras_flags = flags
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 """ 332 """
331 with bot.BuildStep('Build SDK and d8'): 333 with bot.BuildStep('Build SDK and d8'):
332 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, 334 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
333 'dart2js_bot'] 335 'dart2js_bot']
334 print 'Build SDK and d8: %s' % (' '.join(args)) 336 print 'Build SDK and d8: %s' % (' '.join(args))
335 bot.RunProcess(args) 337 bot.RunProcess(args)
336 338
337 339
338 if __name__ == '__main__': 340 if __name__ == '__main__':
339 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) 341 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698