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

Side by Side Diff: dart/frog/scripts/buildbot_annotated_steps.py

Issue 10266011: Shoehorn dart2js into the SDK. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 8 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 | dart/lib/compiler/implementation/dart2js.dart » ('j') | dart/tools/create_sdk.py » ('J')
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 cmd = [] 118 cmd = []
119 119
120 user_test = os.environ.get('USER_TEST', 'no') 120 user_test = os.environ.get('USER_TEST', 'no')
121 121
122 cmd.extend([sys.executable, 122 cmd.extend([sys.executable,
123 os.path.join(os.curdir, 'tools', 'test.py'), 123 os.path.join(os.curdir, 'tools', 'test.py'),
124 '--mode=' + mode, 124 '--mode=' + mode,
125 '--compiler=' + compiler, 125 '--compiler=' + compiler,
126 '--runtime=' + runtime, 126 '--runtime=' + runtime,
127 '--time', 127 '--time',
128 '--use-sdk',
128 '--report']) 129 '--report'])
129 130
130 if user_test == 'yes': 131 if user_test == 'yes':
131 cmd.append('--progress=color') 132 cmd.append('--progress=color')
132 else: 133 else:
133 cmd.extend(['--progress=buildbot', '-v']) 134 cmd.extend(['--progress=buildbot', '-v'])
134 135
135 if flags: 136 if flags:
136 cmd.extend(flags) 137 cmd.extend(flags)
137 cmd.extend(targets) 138 cmd.extend(targets)
(...skipping 21 matching lines...) Expand all
159 for arch in ['ia32', 'x64']: 160 for arch in ['ia32', 'x64']:
160 outdir = build + arch 161 outdir = build + arch
161 shutil.rmtree(outdir, ignore_errors=True) 162 shutil.rmtree(outdir, ignore_errors=True)
162 shutil.rmtree('frog/%s' % outdir, ignore_errors=True) 163 shutil.rmtree('frog/%s' % outdir, ignore_errors=True)
163 shutil.rmtree('runtime/%s' % outdir, ignore_errors=True) 164 shutil.rmtree('runtime/%s' % outdir, ignore_errors=True)
164 165
165 os.chdir(DART_PATH) 166 os.chdir(DART_PATH)
166 167
167 print '@@@BUILD_STEP build frog@@@' 168 print '@@@BUILD_STEP build frog@@@'
168 169
169 args = [sys.executable, './tools/build.py', '--mode=' + mode, 'dart2js'] 170 args = [sys.executable, './tools/build.py', '--mode=' + mode, 'create_sdk']
170 print 'running %s' % (' '.join(args)) 171 print 'running %s' % (' '.join(args))
171 return subprocess.call(args, env=NO_COLOR_ENV) 172 return subprocess.call(args, env=NO_COLOR_ENV)
172 173
173 174
174 def TestFrog(compiler, runtime, mode, system, option, flags, bot_number=None): 175 def TestFrog(compiler, runtime, mode, system, option, flags, bot_number=None):
175 """ test frog. 176 """ test frog.
176 Args: 177 Args:
177 - compiler: either 'dart2js' or 'frog' 178 - compiler: either 'dart2js' or 'frog'
178 - runtime: either 'd8', or one of the browsers, see GetBuildInfo 179 - runtime: either 'd8', or one of the browsers, see GetBuildInfo
179 - mode: either 'debug' or 'release' 180 - mode: either 'debug' or 'release'
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 print '@@@STEP_FAILURE@@@' 314 print '@@@STEP_FAILURE@@@'
314 315
315 if compiler == 'frog' and runtime in ['ff', 'chrome', 'safari', 'opera', 316 if compiler == 'frog' and runtime in ['ff', 'chrome', 'safari', 'opera',
316 'ie', 'drt']: 317 'ie', 'drt']:
317 CleanUpTemporaryFiles(system, runtime) 318 CleanUpTemporaryFiles(system, runtime)
318 return status 319 return status
319 320
320 321
321 if __name__ == '__main__': 322 if __name__ == '__main__':
322 sys.exit(main()) 323 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | dart/lib/compiler/implementation/dart2js.dart » ('j') | dart/tools/create_sdk.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698