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

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

Issue 11189101: Complete renaming of ie bots to ie9, to add ie10. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
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-(ie|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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 step_name = TestStepName(name, flags) 160 step_name = TestStepName(name, flags)
161 print '@@@BUILD_STEP %s@@@' % step_name 161 print '@@@BUILD_STEP %s@@@' % step_name
162 sys.stdout.flush() 162 sys.stdout.flush()
163 if NeedsXterm(compiler, runtime) and system == 'linux': 163 if NeedsXterm(compiler, runtime) and system == 'linux':
164 cmd = ['xvfb-run', '-a'] 164 cmd = ['xvfb-run', '-a']
165 else: 165 else:
166 cmd = [] 166 cmd = []
167 167
168 user_test = os.environ.get('USER_TEST', 'no') 168 user_test = os.environ.get('USER_TEST', 'no')
169 169
170 if runtime == 'ie':
171 runtime = 'ie9' # TODO(efortuna): Fix with issue 6003.
172 cmd.extend([sys.executable, 170 cmd.extend([sys.executable,
173 os.path.join(os.curdir, 'tools', 'test.py'), 171 os.path.join(os.curdir, 'tools', 'test.py'),
174 '--step_name=' + step_name, 172 '--step_name=' + step_name,
175 '--mode=' + mode, 173 '--mode=' + mode,
176 '--compiler=' + compiler, 174 '--compiler=' + compiler,
177 '--runtime=' + runtime, 175 '--runtime=' + runtime,
178 '--time', 176 '--time',
179 '--use-sdk', 177 '--use-sdk',
180 '--report']) 178 '--report'])
181 179
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 build_info.is_buildbot, 404 build_info.is_buildbot,
407 build_info.test_set) 405 build_info.test_set)
408 406
409 if build_info.runtime != 'd8': CleanUpTemporaryFiles(build_info.system, 407 if build_info.runtime != 'd8': CleanUpTemporaryFiles(build_info.system,
410 build_info.runtime) 408 build_info.runtime)
411 if status != 0: print '@@@STEP_FAILURE@@@' 409 if status != 0: print '@@@STEP_FAILURE@@@'
412 return status 410 return status
413 411
414 if __name__ == '__main__': 412 if __name__ == '__main__':
415 sys.exit(main()) 413 sys.exit(main())
OLDNEW
« tools/testing/dart/test_options.dart ('K') | « tools/testing/dart/test_suite.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698