| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 - component: either 'leg', 'frog', 'frogsh' (frog self-hosted), 'frogium' | 111 - component: either 'leg', 'frog', 'frogsh' (frog self-hosted), 'frogium' |
| 112 or 'legium' | 112 or 'legium' |
| 113 - mode: either 'debug' or 'release' | 113 - mode: either 'debug' or 'release' |
| 114 - system: either 'linux', 'mac', or 'win7' | 114 - system: either 'linux', 'mac', or 'win7' |
| 115 """ | 115 """ |
| 116 | 116 |
| 117 os.chdir(DART_PATH) | 117 os.chdir(DART_PATH) |
| 118 | 118 |
| 119 print '@@@BUILD_STEP build frog@@@' | 119 print '@@@BUILD_STEP build frog@@@' |
| 120 | 120 |
| 121 args = [sys.executable, './tools/build.py', '--mode=' + mode, 'frog'] | 121 args = [sys.executable, './tools/build.py', '--mode=' + mode, 'dart2js'] |
| 122 print 'running %s' % (' '.join(args)) | 122 print 'running %s' % (' '.join(args)) |
| 123 exit_code = subprocess.call(args, env=NO_COLOR_ENV) | 123 return subprocess.call(args, env=NO_COLOR_ENV) |
| 124 | |
| 125 if component == 'dart2js': | |
| 126 return exit_code | |
| 127 | |
| 128 args = [sys.executable, './tools/build.py', '--mode=' + mode, 'frogsh'] | |
| 129 print 'running %s' % (' '.join(args)) | |
| 130 return subprocess.call(args, env=NO_COLOR_ENV) | exit_code | |
| 131 | 124 |
| 132 | 125 |
| 133 def TestFrog(component, mode, system, browser, option, flags): | 126 def TestFrog(component, mode, system, browser, option, flags): |
| 134 """ test frog. | 127 """ test frog. |
| 135 Args: | 128 Args: |
| 136 - component: either 'leg', 'frog', 'frogsh' (frog self-hosted), 'frogium', | 129 - component: either 'leg', 'frog', 'frogsh' (frog self-hosted), 'frogium', |
| 137 or 'legium' | 130 or 'legium' |
| 138 - mode: either 'debug' or 'release' | 131 - mode: either 'debug' or 'release' |
| 139 - system: either 'linux', 'mac', or 'win7' | 132 - system: either 'linux', 'mac', or 'win7' |
| 140 - browser: one of the browsers, see GetBuildInfo | 133 - browser: one of the browsers, see GetBuildInfo |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 if status != 0: | 250 if status != 0: |
| 258 print '@@@STEP_FAILURE@@@' | 251 print '@@@STEP_FAILURE@@@' |
| 259 | 252 |
| 260 if component == 'frogium': | 253 if component == 'frogium': |
| 261 CleanUpTemporaryFiles(system, browser) | 254 CleanUpTemporaryFiles(system, browser) |
| 262 return status | 255 return status |
| 263 | 256 |
| 264 | 257 |
| 265 if __name__ == '__main__': | 258 if __name__ == '__main__': |
| 266 sys.exit(main()) | 259 sys.exit(main()) |
| OLD | NEW |