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 | 111 |
112 if arch == 'frogsh': | 112 if arch == 'frogsh': |
113 # There is no need to run these tests both for frog and frogsh. | 113 # There is no need to run these tests both for frog and frogsh. |
114 | 114 |
115 TestStep("leg", testpy_mode, system, 'leg', [], flags) | 115 TestStep("leg", testpy_mode, system, 'leg', [], flags) |
116 TestStep("leg_extra", testpy_mode, system, 'leg', ['leg_only'], flags) | 116 TestStep("leg_extra", testpy_mode, system, 'leg', ['leg_only'], flags) |
117 # Leg isn't self-hosted (yet) so we run the leg unit tests on the VM. | 117 # Leg isn't self-hosted (yet) so we run the leg unit tests on the VM. |
118 TestStep("leg_extra", testpy_mode, system, 'vm', ['leg'], flags) | 118 TestStep("leg_extra", testpy_mode, system, 'vm', ['leg'], flags) |
119 | 119 |
120 else: | 120 else: |
121 # DumpRenderTree tests: | 121 if system == 'windows': |
Siggi Cherem (dart-lang)
2012/02/02 19:22:16
!= instead of == ?
| |
122 tests = [ | 122 # DumpRenderTree tests (DRT is currently not available on Windows): |
123 'client', 'language', 'corelib', 'isolate', 'frog', 'peg', 'css'] | 123 tests = [ |
124 TestStep("browser", testpy_mode, system, 'frogium', tests, flags) | 124 'client', 'language', 'corelib', 'isolate', 'frog', 'peg', 'css'] |
125 TestStep("browser", testpy_mode, system, 'frogium', tests, flags) | |
125 | 126 |
126 # Webdriver tests. | 127 # Webdriver tests. |
127 if system == 'linux': | 128 if system == 'linux': |
128 browsers = ['ff', 'chrome'] | 129 browsers = ['ff', 'chrome'] |
129 elif system == 'mac': | 130 elif system == 'mac': |
130 browsers = ['ff', 'chrome', 'safari'] | 131 browsers = ['ff', 'chrome', 'safari'] |
131 else: | 132 else: |
132 browsers = ['ff', 'chrome', 'ie'] | 133 browsers = ['ff', 'chrome', 'ie'] |
133 | 134 |
134 for browser in browsers: | 135 for browser in browsers: |
(...skipping 14 matching lines...) Expand all Loading... | |
149 return 1 | 150 return 1 |
150 | 151 |
151 status = TestFrog(arch, mode, system) | 152 status = TestFrog(arch, mode, system) |
152 if status != 0: | 153 if status != 0: |
153 print '@@@STEP_FAILURE@@@' | 154 print '@@@STEP_FAILURE@@@' |
154 return status | 155 return status |
155 | 156 |
156 | 157 |
157 if __name__ == '__main__': | 158 if __name__ == '__main__': |
158 sys.exit(main()) | 159 sys.exit(main()) |
OLD | NEW |