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

Side by Side Diff: dart/utils/compiler/buildbot.py

Issue 10855248: Copy all frog/native tests to dart2js_foreign. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 8 years, 4 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
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Dart2js buildbot steps 7 """Dart2js buildbot steps
8 8
9 Runs tests for the dart2js compiler. 9 Runs tests for the dart2js compiler.
10 """ 10 """
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 # The dart2js compiler isn't self-hosted (yet) so we run its 224 # The dart2js compiler isn't self-hosted (yet) so we run its
225 # unit tests on the VM. We avoid doing this on the builders 225 # unit tests on the VM. We avoid doing this on the builders
226 # that run the browser tests to cut down on the cycle time. 226 # that run the browser tests to cut down on the cycle time.
227 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js'], flags) 227 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js'], flags)
228 228
229 if not (system.startswith('win') and runtime == 'ie'): 229 if not (system.startswith('win') and runtime == 'ie'):
230 # Run the default set of test suites. 230 # Run the default set of test suites.
231 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags) 231 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags)
232 232
233 # TODO(kasperl): Consider running peg and css tests too. 233 # TODO(kasperl): Consider running peg and css tests too.
234 extras = ['dart2js_extra', 'dart2js_native'] 234 extras = ['dart2js_extra', 'dart2js_native', 'dart2js_foreign']
235 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, flags) 235 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, flags)
236 else: 236 else:
237 if bot_num == '1': 237 if bot_num == '1':
238 TestStep("dart2js", mode, system, 'dart2js', runtime, ['html'], flags) 238 TestStep("dart2js", mode, system, 'dart2js', runtime, ['html'], flags)
239 else: 239 else:
240 TestStep("dart2js", mode, system, 'dart2js', runtime, ['dartc', 240 TestStep("dart2js", mode, system, 'dart2js', runtime, ['dartc',
241 'samples', 'standalone', 'corelib', 'co19', 'language', 'isolate', 241 'samples', 'standalone', 'corelib', 'co19', 'language', 'isolate',
242 'vm', 'json', 'benchmark_smoke', 'dartdoc', 'utils', 'pub', 'lib'], 242 'vm', 'json', 'benchmark_smoke', 'dartdoc', 'utils', 'pub', 'lib'],
243 flags) 243 flags)
244 extras = ['dart2js_extra', 'dart2js_native'] 244 extras = ['dart2js_extra', 'dart2js_native', 'dart2js_foreign']
245 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, 245 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras,
246 flags) 246 flags)
247 247
248 return 0 248 return 0
249 249
250 def _DeleteFirefoxProfiles(directory): 250 def _DeleteFirefoxProfiles(directory):
251 """Find all the firefox profiles in a particular directory and delete them.""" 251 """Find all the firefox profiles in a particular directory and delete them."""
252 for f in os.listdir(directory): 252 for f in os.listdir(directory):
253 item = os.path.join(directory, f) 253 item = os.path.join(directory, f)
254 if os.path.isdir(item) and f.startswith('tmp'): 254 if os.path.isdir(item) and f.startswith('tmp'):
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 if status == 0 and option != 'checked' and runtime == 'd8': 336 if status == 0 and option != 'checked' and runtime == 'd8':
337 status = TestCompiler(runtime, mode, system, option, 337 status = TestCompiler(runtime, mode, system, option,
338 test_flags + ['--checked'], is_buildbot) 338 test_flags + ['--checked'], is_buildbot)
339 339
340 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime) 340 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime)
341 if status != 0: print '@@@STEP_FAILURE@@@' 341 if status != 0: print '@@@STEP_FAILURE@@@'
342 return status 342 return status
343 343
344 if __name__ == '__main__': 344 if __name__ == '__main__':
345 sys.exit(main()) 345 sys.exit(main())
OLDNEW
« dart/tests/compiler/dart2js_native/dart2js_native.status ('K') | « dart/tools/test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698