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

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

Issue 750653002: Checked mode fixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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
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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 p = subprocess.Popen(version_query_string, 263 p = subprocess.Popen(version_query_string,
264 stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) 264 stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
265 output, stderr = p.communicate() 265 output, stderr = p.communicate()
266 output = output.split() 266 output = output.split()
267 try: 267 try:
268 print 'Version of %s: %s' % (runtime, output[-1]) 268 print 'Version of %s: %s' % (runtime, output[-1])
269 except IndexError: 269 except IndexError:
270 # Failed to obtain version information. Continue running tests. 270 # Failed to obtain version information. Continue running tests.
271 pass 271 pass
272 272
273 unit_test_flags = [flag for flag in flags if flag.startswith('--shard')]
274 # Run the unit tests in checked mode (the VM's checked mode).
275 unit_test_flags.append('--checked')
273 if runtime == 'd8': 276 if runtime == 'd8':
274 # The dart2js compiler isn't self-hosted (yet) so we run its 277 # The dart2js compiler isn't self-hosted (yet) so we run its
275 # unit tests on the VM. We avoid doing this on the builders 278 # unit tests on the VM. We avoid doing this on the builders
276 # that run the browser tests to cut down on the cycle time. 279 # that run the browser tests to cut down on the cycle time.
277 unit_test_flags = [flag for flag in flags if flag.startswith('--shard')]
278 # Run the unit tests in checked mode (the VM's checked mode).
279 unit_test_flags.append('--checked')
280 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js', 'try'], 280 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js', 'try'],
281 unit_test_flags, arch) 281 unit_test_flags, arch)
282 282
283 if compiler == 'dart2js' and runtime == 'drt': 283 if compiler == 'dart2js' and runtime == 'drt':
284 unit_test_flags = [flag for flag in flags if flag.startswith('--shard')]
285 # Ensure that we run the "try" tests on Content Shell. 284 # Ensure that we run the "try" tests on Content Shell.
286 TestStep("incremental_compilation", mode, system, 'none', runtime, 285 TestStep("incremental_compilation", mode, system, 'none', runtime,
287 ['try'], unit_test_flags, arch) 286 ['try'], unit_test_flags, arch)
288 287
289 if compiler == 'dart2js' and runtime in ['ie10', 'ie11']: 288 if compiler == 'dart2js' and runtime in ['ie10', 'ie11']:
290 TestStep(compiler, mode, system, compiler, runtime, 289 TestStep(compiler, mode, system, compiler, runtime,
291 ['html', 'pkg', 'samples'], flags, arch) 290 ['html', 'pkg', 'samples'], flags, arch)
292 else: 291 else:
293 # Run the default set of test suites. 292 # Run the default set of test suites.
294 TestStep(compiler, mode, system, compiler, 293 TestStep(compiler, mode, system, compiler,
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 if build_info.mode == 'debug': 405 if build_info.mode == 'debug':
407 target = 'dart2js_bot_debug' 406 target = 'dart2js_bot_debug'
408 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, 407 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
409 '--arch=' + build_info.arch, target] 408 '--arch=' + build_info.arch, target]
410 print 'Build SDK and d8: %s' % (' '.join(args)) 409 print 'Build SDK and d8: %s' % (' '.join(args))
411 bot.RunProcess(args) 410 bot.RunProcess(args)
412 411
413 412
414 if __name__ == '__main__': 413 if __name__ == '__main__':
415 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) 414 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698