| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # This recipe is intended to control all of the GPU related bots: | 5 # This recipe is intended to control all of the GPU related bots: |
| 6 # chromium.gpu | 6 # chromium.gpu |
| 7 # chromium.gpu.fyi | 7 # chromium.gpu.fyi |
| 8 # The GPU bots on the chromium.webkit waterfall | 8 # The GPU bots on the chromium.webkit waterfall |
| 9 # The GPU bots on the tryserver.chromium waterfall | 9 # The GPU bots on the tryserver.chromium waterfall |
| 10 | 10 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 build_tag = '' if is_release_build else 'debug_' | 89 build_tag = '' if is_release_build else 'debug_' |
| 90 yield api.chromium.compile(targets=['chromium_gpu_%sbuilder' % build_tag]) | 90 yield api.chromium.compile(targets=['chromium_gpu_%sbuilder' % build_tag]) |
| 91 | 91 |
| 92 # TODO(kbr): currently some properties are passed to runtest.py via | 92 # TODO(kbr): currently some properties are passed to runtest.py via |
| 93 # factory_properties in the master.cfg: generate_gtest_json, | 93 # factory_properties in the master.cfg: generate_gtest_json, |
| 94 # show_perf_results, test_results_server, and perf_id. runtest.py | 94 # show_perf_results, test_results_server, and perf_id. runtest.py |
| 95 # should be modified to take these arguments on the command line, | 95 # should be modified to take these arguments on the command line, |
| 96 # and the setting of these properties should happen in this recipe | 96 # and the setting of these properties should happen in this recipe |
| 97 # instead. | 97 # instead. |
| 98 | 98 |
| 99 # On Windows, start the crash service. |
| 100 if api.platform.is_win: |
| 101 yield api.python( |
| 102 'start_crash_service', |
| 103 api.path.build('scripts', 'slave', 'chromium', |
| 104 'run_crash_handler.py'), |
| 105 ['--build-dir', |
| 106 api.path.checkout('out'), |
| 107 '--target', |
| 108 'Release' if is_release_build else 'Debug']) |
| 109 |
| 99 # Note: --no-xvfb is the default. | 110 # Note: --no-xvfb is the default. |
| 100 for test in SIMPLE_TESTS_TO_RUN: | 111 for test in SIMPLE_TESTS_TO_RUN: |
| 101 yield api.chromium.runtests(test, spawn_dbus=True) | 112 yield api.chromium.runtests(test, spawn_dbus=True) |
| 102 | 113 |
| 103 # Former gpu_content_tests step | 114 # Former gpu_content_tests step |
| 104 args = ['--use-gpu-in-tests', | 115 args = ['--use-gpu-in-tests', |
| 105 '--gtest_filter=Gpu*.*', | 116 '--gtest_filter=Gpu*.*', |
| 106 '--ui-test-action-max-timeout=45000', | 117 '--ui-test-action-max-timeout=45000', |
| 107 '--run-manual'] | 118 '--run-manual'] |
| 108 yield api.chromium.runtests('content_browsertests', | 119 yield api.chromium.runtests('content_browsertests', |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 name='tab_capture_performance_tests', | 172 name='tab_capture_performance_tests', |
| 162 annotate='graphing', | 173 annotate='graphing', |
| 163 results_url=dashboard_upload_url, | 174 results_url=dashboard_upload_url, |
| 164 perf_dashboard_id='tab_capture_performance', | 175 perf_dashboard_id='tab_capture_performance', |
| 165 test_type='tab_capture_performance_tests', | 176 test_type='tab_capture_performance_tests', |
| 166 spawn_dbus=True) | 177 spawn_dbus=True) |
| 167 | 178 |
| 168 # TODO(kbr): after the conversion to recipes, add all GPU related | 179 # TODO(kbr): after the conversion to recipes, add all GPU related |
| 169 # steps from the main waterfall, like gpu_unittests. | 180 # steps from the main waterfall, like gpu_unittests. |
| 170 | 181 |
| 182 # On Windows, process any crash dumps that may have occurred. |
| 183 if api.platform.is_win: |
| 184 yield api.python( |
| 185 'process_dumps', |
| 186 api.path.build('scripts', 'slave', 'process_dumps.py'), |
| 187 ['--build-dir', |
| 188 api.path.checkout('out'), |
| 189 '--target', |
| 190 'Release' if is_release_build else 'Debug']) |
| 191 |
| 171 def GenTests(api): | 192 def GenTests(api): |
| 172 for build_config in ['Release', 'Debug']: | 193 for build_config in ['Release', 'Debug']: |
| 173 for plat in ['win', 'mac', 'linux']: | 194 for plat in ['win', 'mac', 'linux']: |
| 174 # Normal builder configuration | 195 # Normal builder configuration |
| 175 base_name = '%s_%s' % (plat, build_config.lower()) | 196 base_name = '%s_%s' % (plat, build_config.lower()) |
| 176 yield ( | 197 yield ( |
| 177 api.test(base_name) + | 198 api.test(base_name) + |
| 178 api.properties.scheduled(build_config=build_config) + | 199 api.properties.scheduled(build_config=build_config) + |
| 179 api.platform.name(plat) | 200 api.platform.name(plat) |
| 180 ) | 201 ) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 205 ) | 226 ) |
| 206 | 227 |
| 207 # Test one trybot configuration with Blink issues. | 228 # Test one trybot configuration with Blink issues. |
| 208 yield ( | 229 yield ( |
| 209 api.test('mac_release_tryserver_blink') + | 230 api.test('mac_release_tryserver_blink') + |
| 210 api.properties.tryserver( | 231 api.properties.tryserver( |
| 211 build_config='Release', | 232 build_config='Release', |
| 212 root='src/third_party/WebKit') + | 233 root='src/third_party/WebKit') + |
| 213 api.platform.name('mac') | 234 api.platform.name('mac') |
| 214 ) | 235 ) |
| OLD | NEW |