Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 compiler (running on the vm or the self-hosting version) | 9 Runs tests for the frog compiler (running on the vm or the self-hosting version) |
| 10 """ | 10 """ |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 159 if len(sys.argv) == 0: | 159 if len(sys.argv) == 0: |
| 160 print 'Script pathname not known, giving up.' | 160 print 'Script pathname not known, giving up.' |
| 161 return 1 | 161 return 1 |
| 162 | 162 |
| 163 arch, mode, system, browser = GetBuildInfo() | 163 arch, mode, system, browser = GetBuildInfo() |
| 164 print "arch: %s, mode: %s, system: %s, browser %s" % (arch, mode, system, | 164 print "arch: %s, mode: %s, system: %s, browser %s" % (arch, mode, system, |
| 165 browser) | 165 browser) |
| 166 if arch is None: | 166 if arch is None: |
| 167 return 1 | 167 return 1 |
| 168 | 168 |
| 169 status = BuildFrog(arch, mode, system) | 169 status = 0 |
| 170 if arch == 'frogium': | |
| 171 # Use release VM on frogium bots, so our tests run faster. | |
| 172 status = BuildFrog(arch, 'release', system) | |
|
Emily Fortuna
2012/02/09 23:29:06
we use "debug" mode on other things so that the ti
| |
| 173 else: | |
| 174 status = BuildFrog(arch, mode, system) | |
| 170 if status != 0: | 175 if status != 0: |
| 171 print '@@@STEP_FAILURE@@@' | 176 print '@@@STEP_FAILURE@@@' |
| 172 return status | 177 return status |
| 173 | 178 |
| 174 if arch != 'frogium': | 179 if arch != 'frogium': |
| 175 status = TestFrog(arch, mode, system, browser, []) | 180 status = TestFrog(arch, mode, system, browser, []) |
| 176 if status != 0: | 181 if status != 0: |
| 177 print '@@@STEP_FAILURE@@@' | 182 print '@@@STEP_FAILURE@@@' |
| 178 return status | 183 return status |
| 179 | 184 |
| 180 status = TestFrog(arch, mode, system, browser, ['--checked']) | 185 status = TestFrog(arch, mode, system, browser, ['--checked']) |
| 181 if status != 0: | 186 if status != 0: |
| 182 print '@@@STEP_FAILURE@@@' | 187 print '@@@STEP_FAILURE@@@' |
| 183 | 188 |
| 184 return status | 189 return status |
| 185 | 190 |
| 186 | 191 |
| 187 if __name__ == '__main__': | 192 if __name__ == '__main__': |
| 188 sys.exit(main()) | 193 sys.exit(main()) |
| OLD | NEW |