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

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

Issue 10443057: Improve annotated steps output (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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 | « dart/tools/testing/dart/test_progress.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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 if system == 'win7': 157 if system == 'win7':
158 for build in ['Release_', 'Debug_']: 158 for build in ['Release_', 'Debug_']:
159 for arch in ['ia32', 'x64']: 159 for arch in ['ia32', 'x64']:
160 outdir = build + arch 160 outdir = build + arch
161 shutil.rmtree(outdir, ignore_errors=True) 161 shutil.rmtree(outdir, ignore_errors=True)
162 shutil.rmtree('frog/%s' % outdir, ignore_errors=True) 162 shutil.rmtree('frog/%s' % outdir, ignore_errors=True)
163 shutil.rmtree('runtime/%s' % outdir, ignore_errors=True) 163 shutil.rmtree('runtime/%s' % outdir, ignore_errors=True)
164 164
165 os.chdir(DART_PATH) 165 os.chdir(DART_PATH)
166 166
167 print '@@@BUILD_STEP build sdk@@@'
168
169 args = [sys.executable, './tools/build.py', '--mode=' + mode, 'create_sdk'] 167 args = [sys.executable, './tools/build.py', '--mode=' + mode, 'create_sdk']
170 print 'running %s' % (' '.join(args)) 168 print 'running %s' % (' '.join(args))
171 return subprocess.call(args, env=NO_COLOR_ENV) 169 return subprocess.call(args, env=NO_COLOR_ENV)
172 170
173 171
174 def TestCompiler(compiler, runtime, mode, system, option, flags): 172 def TestCompiler(compiler, runtime, mode, system, option, flags):
175 """ test the compiler. 173 """ test the compiler.
176 Args: 174 Args:
177 - compiler: either 'dart2js' or 'frog' 175 - compiler: either 'dart2js' or 'frog'
178 - runtime: either 'd8', or one of the browsers, see GetBuildInfo 176 - runtime: either 'd8', or one of the browsers, see GetBuildInfo
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 shutil.rmtree('C:\\Users\\chrome-bot\\AppData\\Local\\Temp', 258 shutil.rmtree('C:\\Users\\chrome-bot\\AppData\\Local\\Temp',
261 ignore_errors=True) 259 ignore_errors=True)
262 elif browser == 'ff': 260 elif browser == 'ff':
263 # Note: the buildbots run as root, so we can do this without requiring a 261 # Note: the buildbots run as root, so we can do this without requiring a
264 # password. The command won't actually work on regular machines without 262 # password. The command won't actually work on regular machines without
265 # root permissions. 263 # root permissions.
266 _DeleteFirefoxProfiles('/tmp') 264 _DeleteFirefoxProfiles('/tmp')
267 _DeleteFirefoxProfiles('/var/tmp') 265 _DeleteFirefoxProfiles('/var/tmp')
268 266
269 def main(): 267 def main():
268 print '@@@BUILD_STEP build sdk@@@'
269
270 if len(sys.argv) == 0: 270 if len(sys.argv) == 0:
271 print 'Script pathname not known, giving up.' 271 print 'Script pathname not known, giving up.'
272 return 1 272 return 1
273 273
274 compiler, runtime, mode, system, option, shard_index, total_shards = ( 274 compiler, runtime, mode, system, option, shard_index, total_shards = (
275 GetBuildInfo()) 275 GetBuildInfo())
276 shard_description = "" 276 shard_description = ""
277 if shard_index: 277 if shard_index:
278 shard_description = " shard %s of %s" % (shard_index, total_shards) 278 shard_description = " shard %s of %s" % (shard_index, total_shards)
279 print "compiler: %s, runtime: %s mode: %s, system: %s, option: %s%s" % ( 279 print "compiler: %s, runtime: %s mode: %s, system: %s, option: %s%s" % (
(...skipping 17 matching lines...) Expand all
297 if status == 0 and compiler != 'dart2js': 297 if status == 0 and compiler != 'dart2js':
298 status = TestCompiler(compiler, runtime, mode, system, option, 298 status = TestCompiler(compiler, runtime, mode, system, option,
299 test_flags + ['--checked']) 299 test_flags + ['--checked'])
300 300
301 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime) 301 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime)
302 if status != 0: print '@@@STEP_FAILURE@@@' 302 if status != 0: print '@@@STEP_FAILURE@@@'
303 return status 303 return status
304 304
305 if __name__ == '__main__': 305 if __name__ == '__main__':
306 sys.exit(main()) 306 sys.exit(main())
OLDNEW
« no previous file with comments | « dart/tools/testing/dart/test_progress.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698