| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 if pipe.returncode == 0: | 69 if pipe.returncode == 0: |
| 70 version = output[0] | 70 version = output[0] |
| 71 else: | 71 else: |
| 72 version = 'unknown' | 72 version = 'unknown' |
| 73 return (name, version, component, mode, platform) | 73 return (name, version, component, mode, platform) |
| 74 | 74 |
| 75 | 75 |
| 76 def RunDartcCompiler(mode, outdir): | 76 def RunDartcCompiler(mode, outdir): |
| 77 """Compiles the client code to javascript for dartc tests.""" | 77 """Compiles the client code to javascript for dartc tests.""" |
| 78 return subprocess.call( | 78 return subprocess.call( |
| 79 [sys.executable, './tools/build.py', '--mode=' + mode]) | 79 [sys.executable, './tools/build.py', '--mode=' + mode, 'compiler']) |
| 80 | 80 |
| 81 def RunBrowserTests(component, mode, platform): | 81 def RunBrowserTests(component, mode, platform): |
| 82 """Runs the Dart client tests.""" | 82 """Runs the Dart client tests.""" |
| 83 if platform == 'linux': | 83 if platform == 'linux': |
| 84 cmd = ['xvfb-run'] | 84 cmd = ['xvfb-run'] |
| 85 else: | 85 else: |
| 86 cmd = [] | 86 cmd = [] |
| 87 cmd += [sys.executable, './tools/test.py', | 87 cmd += [sys.executable, './tools/test.py', |
| 88 '--component=' + component, '--mode=' + mode, | 88 '--component=' + component, '--mode=' + mode, |
| 89 '--time', '--report', '--progress=buildbot', '-v'] | 89 '--time', '--report', '--progress=buildbot', '-v'] |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 status = ProcessDartClientTests(component, mode, platform, name) | 196 status = ProcessDartClientTests(component, mode, platform, name) |
| 197 | 197 |
| 198 if status: | 198 if status: |
| 199 print '@@@STEP_FAILURE@@@' | 199 print '@@@STEP_FAILURE@@@' |
| 200 | 200 |
| 201 return status | 201 return status |
| 202 | 202 |
| 203 | 203 |
| 204 if __name__ == '__main__': | 204 if __name__ == '__main__': |
| 205 sys.exit(main()) | 205 sys.exit(main()) |
| OLD | NEW |