Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #!/usr/bin/python | 5 #!/usr/bin/python |
| 6 | 6 |
| 7 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 7 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 8 # Use of this source code is governed by a BSD-style license that can be | 8 # Use of this source code is governed by a BSD-style license that can be |
| 9 # found in the LICENSE file. | 9 # found in the LICENSE file. |
| 10 | 10 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 148 print '@@@BUILD_STEP vm r%s (dartium r%s)@@@' % ( | 148 print '@@@BUILD_STEP vm r%s (dartium r%s)@@@' % ( |
| 149 match.group(2), match.group(1)) | 149 match.group(2), match.group(1)) |
| 150 print '@@@BUILD_STEP browser unit tests@@@' | 150 print '@@@BUILD_STEP browser unit tests@@@' |
| 151 return RunBrowserTests(srcpath, arch, mode, platform) | 151 return RunBrowserTests(srcpath, arch, mode, platform) |
| 152 | 152 |
| 153 def ProcessTools(srcpath, mode, name, version): | 153 def ProcessTools(srcpath, mode, name, version): |
| 154 ''' | 154 ''' |
| 155 build and test the tools | 155 build and test the tools |
| 156 | 156 |
| 157 args: | 157 args: |
| 158 srcpath - the locatio of the source code to build | 158 srcpath - the location of the source code to build |
| 159 mode - the mode release or debug | 159 mode - the mode release or debug |
| 160 version - the svn version of the currently checked out code | 160 version - the svn version of the currently checked out code |
| 161 ''' | 161 ''' |
| 162 print 'ProcessTools' | 162 print 'ProcessTools' |
| 163 | 163 |
| 164 toolsBuildScript = os.path.join(srcpath, '..', 'editor', 'build', 'build.py') | 164 toolsBuildScript = os.path.join(srcpath, '..', 'editor', 'build', 'build.py') |
| 165 | 165 |
| 166 #TODO: debug statements to be removed in the future. | 166 #TODO: debug statements to be removed in the future. |
| 167 print "srcpath = " + srcpath | 167 print "srcpath = " + srcpath |
| 168 print "mode = " + mode | 168 print "mode = " + mode |
| 169 print "name = " + name | 169 print "name = " + name |
| 170 print "version = " + version | 170 print "version = " + version |
| 171 print "toolsBuildScript = " + os.path.abspath(toolsBuildScript) | 171 print "toolsBuildScript = " + os.path.abspath(toolsBuildScript) |
| 172 | 172 |
| 173 utils = GetUtils(srcpath) | 173 utils = GetUtils(srcpath) |
| 174 outdir = GetOutDir(utils, mode, "tools") | 174 outdir = GetOutDir(utils, mode, "tools") |
| 175 cmds = [sys.executable, toolsBuildScript, | 175 cmds = [sys.executable, toolsBuildScript, |
| 176 '--mode=' + mode, '--revision=' + version, | 176 '--mode=' + mode, '--revision=' + version, |
| 177 '--name=' + name, '--out=' + outdir] | 177 '--name=' + name, '--out=' + outdir] |
| 178 return subprocess.call(cmds) | 178 return subprocess.call(cmds) |
| 179 | 179 |
| 180 def ProcessFrog(srcpath): | |
|
jimhug
2011/10/25 16:24:16
I have minor fears for the frog here ... <smile>
| |
| 181 ''' | |
| 182 build and test experimental frog build | |
| 183 | |
| 184 args: | |
| 185 srcpath - the location of the source code to build | |
| 186 ''' | |
| 187 print 'ProcessFrog' | |
| 188 | |
| 189 return subprocess.call([sys.executable, | |
| 190 os.path.join(srcpath, '..', 'frog', | |
| 191 'scripts', 'buildbot_annotated_steps.py')]) | |
| 192 | |
| 180 def main(): | 193 def main(): |
| 181 print 'main' | 194 print 'main' |
| 182 if len(sys.argv) == 0: | 195 if len(sys.argv) == 0: |
| 183 print 'Script pathname not known, giving up.' | 196 print 'Script pathname not known, giving up.' |
| 184 return 1 | 197 return 1 |
| 185 | 198 |
| 186 scriptdir = os.path.dirname(sys.argv[0]) | 199 scriptdir = os.path.dirname(sys.argv[0]) |
| 187 srcpath = os.path.abspath(os.path.join(scriptdir, '..')) | 200 srcpath = os.path.abspath(os.path.join(scriptdir, '..')) |
| 188 | 201 |
| 189 (name, version, arch, mode, platform) = GetBuildInfo(srcpath) | 202 (name, version, arch, mode, platform) = GetBuildInfo(srcpath) |
| 190 if name == 'dart-editor': | 203 if name == 'dart-editor': |
| 191 status = ProcessTools(srcpath, mode, name, version) | 204 status = ProcessTools(srcpath, mode, name, version) |
| 205 #TODO(sigmund): remove this indirection once we update out bots | |
| 206 elif name.startswith('frog'): | |
| 207 status = ProcessFrog(srcpath) | |
| 192 else: | 208 else: |
| 193 status = ProcessDartClientTests(srcpath, arch, mode, platform, name) | 209 status = ProcessDartClientTests(srcpath, arch, mode, platform, name) |
| 194 | 210 |
| 195 if status: | 211 if status: |
| 196 print '@@@STEP_FAILURE@@@' | 212 print '@@@STEP_FAILURE@@@' |
| 197 | 213 |
| 198 return status | 214 return status |
| 199 | 215 |
| 200 | 216 |
| 201 if __name__ == '__main__': | 217 if __name__ == '__main__': |
| 202 sys.exit(main()) | 218 sys.exit(main()) |
| OLD | NEW |