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

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

Issue 11231081: Reapply ie to ie9 rename. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/testing/dart/test_suite.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 """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 """
11 11
12 import platform 12 import platform
13 import optparse 13 import optparse
14 import os 14 import os
15 import re 15 import re
16 import shutil 16 import shutil
17 import subprocess 17 import subprocess
18 import sys 18 import sys
19 19
20 BUILDER_NAME = 'BUILDBOT_BUILDERNAME' 20 BUILDER_NAME = 'BUILDBOT_BUILDERNAME'
21 BUILDER_CLOBBER = 'BUILDBOT_CLOBBER' 21 BUILDER_CLOBBER = 'BUILDBOT_CLOBBER'
22 22
23 23
24 DART_PATH = os.path.dirname( 24 DART_PATH = os.path.dirname(
25 os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) 25 os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
26 26
27 DART2JS_BUILDER = ( 27 DART2JS_BUILDER = (
28 r'dart2js-(linux|mac|windows)(-(jsshell))?-(debug|release)(-(checked|host-ch ecked))?(-(host-checked))?-?(\d*)-?(\d*)') 28 r'dart2js-(linux|mac|windows)(-(jsshell))?-(debug|release)(-(checked|host-ch ecked))?(-(host-checked))?-?(\d*)-?(\d*)')
29 WEB_BUILDER = ( 29 WEB_BUILDER = (
30 r'dart2js-(ie9|ff|safari|chrome|opera)-(win7|win8|mac|linux)(-(all|html))?') 30 r'dart2js-(ie9|ie10|ff|safari|chrome|opera)-(win7|win8|mac|linux)(-(all|html ))?')
31 31
32 NO_COLOR_ENV = dict(os.environ) 32 NO_COLOR_ENV = dict(os.environ)
33 NO_COLOR_ENV['TERM'] = 'nocolor' 33 NO_COLOR_ENV['TERM'] = 'nocolor'
34 34
35 class BuildInfo(object): 35 class BuildInfo(object):
36 """ Encapsulation of build information. 36 """ Encapsulation of build information.
37 - compiler: 'dart2js' or None when the builder has an incorrect name 37 - compiler: 'dart2js' or None when the builder has an incorrect name
38 - runtime: 'd8', 'ie', 'ff', 'safari', 'chrome', 'opera' 38 - runtime: 'd8', 'ie', 'ff', 'safari', 'chrome', 'opera'
39 - mode: 'debug' or 'release' 39 - mode: 'debug' or 'release'
40 - system: 'linux', 'mac', or 'win7' 40 - system: 'linux', 'mac', or 'win7'
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 print 'Use -n $BUILDBOT_NAME for the bot you would like to emulate.' 101 print 'Use -n $BUILDBOT_NAME for the bot you would like to emulate.'
102 sys.exit(1) 102 sys.exit(1)
103 103
104 if builder_name: 104 if builder_name:
105 dart2js_pattern = re.match(DART2JS_BUILDER, builder_name) 105 dart2js_pattern = re.match(DART2JS_BUILDER, builder_name)
106 web_pattern = re.match(WEB_BUILDER, builder_name) 106 web_pattern = re.match(WEB_BUILDER, builder_name)
107 107
108 if web_pattern: 108 if web_pattern:
109 compiler = 'dart2js' 109 compiler = 'dart2js'
110 runtime = web_pattern.group(1) 110 runtime = web_pattern.group(1)
111 # TODO(efortuna) remove this when new support lands.
112 if runtime == 'ie9':
113 runtime = 'ie'
114 system = web_pattern.group(2) 111 system = web_pattern.group(2)
115 mode = 'release' 112 mode = 'release'
116 test_set = web_pattern.group(4) 113 test_set = web_pattern.group(4)
117 elif dart2js_pattern: 114 elif dart2js_pattern:
118 compiler = 'dart2js' 115 compiler = 'dart2js'
119 system = dart2js_pattern.group(1) 116 system = dart2js_pattern.group(1)
120 runtime = 'd8' 117 runtime = 'd8'
121 if dart2js_pattern.group(3) == 'jsshell': 118 if dart2js_pattern.group(3) == 'jsshell':
122 runtime = 'jsshell' 119 runtime = 'jsshell'
123 mode = dart2js_pattern.group(4) 120 mode = dart2js_pattern.group(4)
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 step_name = TestStepName(name, flags) 160 step_name = TestStepName(name, flags)
164 print '@@@BUILD_STEP %s@@@' % step_name 161 print '@@@BUILD_STEP %s@@@' % step_name
165 sys.stdout.flush() 162 sys.stdout.flush()
166 if NeedsXterm(compiler, runtime) and system == 'linux': 163 if NeedsXterm(compiler, runtime) and system == 'linux':
167 cmd = ['xvfb-run', '-a'] 164 cmd = ['xvfb-run', '-a']
168 else: 165 else:
169 cmd = [] 166 cmd = []
170 167
171 user_test = os.environ.get('USER_TEST', 'no') 168 user_test = os.environ.get('USER_TEST', 'no')
172 169
173 if runtime == 'ie':
174 runtime = 'ie9' # TODO(efortuna): Fix with issue 6003.
175 cmd.extend([sys.executable, 170 cmd.extend([sys.executable,
176 os.path.join(os.curdir, 'tools', 'test.py'), 171 os.path.join(os.curdir, 'tools', 'test.py'),
177 '--step_name=' + step_name, 172 '--step_name=' + step_name,
178 '--mode=' + mode, 173 '--mode=' + mode,
179 '--compiler=' + compiler, 174 '--compiler=' + compiler,
180 '--runtime=' + runtime, 175 '--runtime=' + runtime,
181 '--time', 176 '--time',
182 '--use-sdk', 177 '--use-sdk',
183 '--report']) 178 '--report'])
184 179
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 build_info.is_buildbot, 404 build_info.is_buildbot,
410 build_info.test_set) 405 build_info.test_set)
411 406
412 if build_info.runtime != 'd8': CleanUpTemporaryFiles(build_info.system, 407 if build_info.runtime != 'd8': CleanUpTemporaryFiles(build_info.system,
413 build_info.runtime) 408 build_info.runtime)
414 if status != 0: print '@@@STEP_FAILURE@@@' 409 if status != 0: print '@@@STEP_FAILURE@@@'
415 return status 410 return status
416 411
417 if __name__ == '__main__': 412 if __name__ == '__main__':
418 sys.exit(main()) 413 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/testing/dart/test_suite.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698