| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 print 'main' | 151 print 'main' |
| 152 if len(sys.argv) == 0: | 152 if len(sys.argv) == 0: |
| 153 print 'Script pathname not known, giving up.' | 153 print 'Script pathname not known, giving up.' |
| 154 return 1 | 154 return 1 |
| 155 | 155 |
| 156 arch, mode, system = GetBuildInfo() | 156 arch, mode, system = GetBuildInfo() |
| 157 print "arch: %s, mode: %s, system: %s" % (arch, mode, system) | 157 print "arch: %s, mode: %s, system: %s" % (arch, mode, system) |
| 158 if arch is None: | 158 if arch is None: |
| 159 return 1 | 159 return 1 |
| 160 | 160 |
| 161 if arch != 'frogium': |
| 162 mode = 'release' |
| 161 status = BuildFrog(arch, mode, system) | 163 status = BuildFrog(arch, mode, system) |
| 162 if status != 0: | 164 if status != 0: |
| 163 print '@@@STEP_FAILURE@@@' | 165 print '@@@STEP_FAILURE@@@' |
| 164 return status | 166 return status |
| 165 | 167 |
| 166 if arch != 'frogium': | 168 if arch != 'frogium': |
| 167 status = TestFrog(arch, mode, system, []) | 169 status = TestFrog(arch, mode, system, []) |
| 168 if status != 0: | 170 if status != 0: |
| 169 print '@@@STEP_FAILURE@@@' | 171 print '@@@STEP_FAILURE@@@' |
| 170 return status | 172 return status |
| 171 | 173 |
| 172 status = TestFrog(arch, mode, system, ['--checked']) | 174 status = TestFrog(arch, mode, system, ['--checked']) |
| 173 if status != 0: | 175 if status != 0: |
| 174 print '@@@STEP_FAILURE@@@' | 176 print '@@@STEP_FAILURE@@@' |
| 175 | 177 |
| 176 return status | 178 return status |
| 177 | 179 |
| 178 | 180 |
| 179 if __name__ == '__main__': | 181 if __name__ == '__main__': |
| 180 sys.exit(main()) | 182 sys.exit(main()) |
| OLD | NEW |