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

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

Issue 10536169: Move frog/tests/{leg,leg_only,frog_native} to tests/compiler/. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 | « tools/test.dart ('k') | 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) 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 """Dart frog buildbot steps 7 """Dart frog buildbot steps
8 8
9 Runs tests for the frog or dart2js compiler. 9 Runs tests for the frog or dart2js compiler.
10 """ 10 """
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 # TODO(ngeoffray): We should install selenium on the buildbot. 190 # TODO(ngeoffray): We should install selenium on the buildbot.
191 runtime = 'drt' 191 runtime = 'drt'
192 192
193 if compiler == 'dart2js': 193 if compiler == 'dart2js':
194 if option == 'checked': flags = flags + ['--host-checked'] 194 if option == 'checked': flags = flags + ['--host-checked']
195 195
196 if runtime == 'd8': 196 if runtime == 'd8':
197 # The dart2js compiler isn't self-hosted (yet) so we run its 197 # The dart2js compiler isn't self-hosted (yet) so we run its
198 # unit tests on the VM. We avoid doing this on the builders 198 # unit tests on the VM. We avoid doing this on the builders
199 # that run the browser tests to cut down on the cycle time. 199 # that run the browser tests to cut down on the cycle time.
200 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['leg'], flags) 200 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js'], flags)
201 201
202 # Run the default set of test suites. 202 # Run the default set of test suites.
203 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags) 203 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags)
204 204
205 # TODO(kasperl): Consider running peg and css tests too. 205 # TODO(kasperl): Consider running peg and css tests too.
206 extras = ['leg_only', 'frog_native'] 206 extras = ['dart2js_extra', 'dart2js_native']
207 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, flags) 207 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, flags)
208 208
209 elif compiler == 'frog': 209 elif compiler == 'frog':
210 TestStep("frog", mode, system, compiler, runtime, [], flags) 210 TestStep("frog", mode, system, compiler, runtime, [], flags)
211 extras = ['frog', 'frog_native', 'peg', 'css'] 211 extras = ['frog', 'dart2js_native', 'peg', 'css']
212 TestStep("frog_extra", mode, system, compiler, runtime, extras, flags) 212 TestStep("frog_extra", mode, system, compiler, runtime, extras, flags)
213 213
214 return 0 214 return 0
215 215
216 def _DeleteFirefoxProfiles(directory): 216 def _DeleteFirefoxProfiles(directory):
217 """Find all the firefox profiles in a particular directory and delete them.""" 217 """Find all the firefox profiles in a particular directory and delete them."""
218 for f in os.listdir(directory): 218 for f in os.listdir(directory):
219 item = os.path.join(directory, f) 219 item = os.path.join(directory, f)
220 if os.path.isdir(item) and f.startswith('tmp'): 220 if os.path.isdir(item) and f.startswith('tmp'):
221 subprocess.Popen('rm -rf %s' % item, shell=True) 221 subprocess.Popen('rm -rf %s' % item, shell=True)
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 if status == 0 and option != 'checked' and runtime == 'd8': 281 if status == 0 and option != 'checked' and runtime == 'd8':
282 status = TestCompiler(compiler, runtime, mode, system, option, 282 status = TestCompiler(compiler, runtime, mode, system, option,
283 test_flags + ['--checked']) 283 test_flags + ['--checked'])
284 284
285 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime) 285 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime)
286 if status != 0: print '@@@STEP_FAILURE@@@' 286 if status != 0: print '@@@STEP_FAILURE@@@'
287 return status 287 return status
288 288
289 if __name__ == '__main__': 289 if __name__ == '__main__':
290 sys.exit(main()) 290 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698