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

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

Issue 12093044: Utilize all cores on IE bots (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | 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) 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 Args: 155 Args:
156 - runtime: either 'd8', 'jsshell', or one of the browsers, see GetBuildInfo 156 - runtime: either 'd8', 'jsshell', or one of the browsers, see GetBuildInfo
157 - mode: either 'debug' or 'release' 157 - mode: either 'debug' or 'release'
158 - system: either 'linux', 'mac', 'win7', or 'win8' 158 - system: either 'linux', 'mac', 'win7', or 'win8'
159 - flags: extra flags to pass to test.dart 159 - flags: extra flags to pass to test.dart
160 - is_buildbot: true if we are running on a real buildbot instead of 160 - is_buildbot: true if we are running on a real buildbot instead of
161 emulating one. 161 emulating one.
162 - test_set: Specification of a non standard test set, default None 162 - test_set: Specification of a non standard test set, default None
163 """ 163 """
164 164
165 if system.startswith('win') and runtime.startswith('ie'):
166 # There should not be more than one InternetExplorerDriver instance
167 # running at a time. For details, see
168 # http://code.google.com/p/selenium/wiki/InternetExplorerDriver.
ricow1 2013/01/29 15:41:17 You could copy this comment to the test file
kustermann 2013/01/29 16:08:55 Done.
169 flags += ['-j1']
170
171 def GetPath(runtime): 165 def GetPath(runtime):
172 """ Helper to get the path to the Chrome or Firefox executable for a 166 """ Helper to get the path to the Chrome or Firefox executable for a
173 particular platform on the buildbot. Throws a KeyError if runtime is not 167 particular platform on the buildbot. Throws a KeyError if runtime is not
174 either 'chrome' or 'ff'.""" 168 either 'chrome' or 'ff'."""
175 if system == 'mac': 169 if system == 'mac':
176 partDict = {'chrome': 'Google\\ Chrome', 'ff': 'Firefox'} 170 partDict = {'chrome': 'Google\\ Chrome', 'ff': 'Firefox'}
177 mac_path = '/Applications/%s.app/Contents/MacOS/%s' 171 mac_path = '/Applications/%s.app/Contents/MacOS/%s'
178 path_dict = {'chrome': mac_path % (partDict[runtime], partDict[runtime]), 172 path_dict = {'chrome': mac_path % (partDict[runtime], partDict[runtime]),
179 'ff': mac_path % (partDict[runtime], partDict[runtime].lower())} 173 'ff': mac_path % (partDict[runtime], partDict[runtime].lower())}
180 elif system == 'linux': 174 elif system == 'linux':
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 """ 316 """
323 with bot.BuildStep('Build SDK and d8'): 317 with bot.BuildStep('Build SDK and d8'):
324 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, 318 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
325 'dart2js_bot'] 319 'dart2js_bot']
326 print 'Build SDK and d8: %s' % (' '.join(args)) 320 print 'Build SDK and d8: %s' % (' '.join(args))
327 bot.RunProcess(args) 321 bot.RunProcess(args)
328 322
329 323
330 if __name__ == '__main__': 324 if __name__ == '__main__':
331 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) 325 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698