OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 """Swarming staging recipe: runs tests for HEAD of chromium using HEAD of | 5 """Swarming staging recipe: runs tests for HEAD of chromium using HEAD of |
6 swarming_client toolset on Swarming staging server instances | 6 swarming_client toolset on Swarming staging server instances |
7 (*-dev.appspot.com). | 7 (*-dev.appspot.com). |
8 | 8 |
9 Intended to catch bugs in swarming_client and Swarming servers early on, before | 9 Intended to catch bugs in swarming_client and Swarming servers early on, before |
10 full roll out. | 10 full roll out. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 # Checkout chromium + deps (including 'master' of swarming_client). | 74 # Checkout chromium + deps (including 'master' of swarming_client). |
75 step_result = api.bot_update.ensure_checkout() | 75 step_result = api.bot_update.ensure_checkout() |
76 if not step_result.json.output['did_run']: | 76 if not step_result.json.output['did_run']: |
77 api.gclient.checkout() | 77 api.gclient.checkout() |
78 | 78 |
79 # Ensure swarming_client version is fresh enough. | 79 # Ensure swarming_client version is fresh enough. |
80 api.swarming.check_client_version() | 80 api.swarming.check_client_version() |
81 | 81 |
82 targets = ['chromium_swarm_tests'] | 82 targets = ['chromium_swarm_tests'] |
83 if api.properties.get('platform') == 'android': | 83 if api.properties.get('platform') == 'android': |
84 targets = ['ui_android_unittests_apk_run'] | 84 targets = [ |
| 85 'android_webview_test_apk_run', |
| 86 'android_webview_unittests_apk_run', |
| 87 'base_unittests_apk_run', |
| 88 'breakpad_unittests_apk_run', |
| 89 'device_unittests_apk_run', |
| 90 'gl_tests_apk_run', |
| 91 'gpu_unittests_apk_run', |
| 92 'ui_android_unittests_apk_run', |
| 93 ] |
85 | 94 |
86 # Build all supported tests. | 95 # Build all supported tests. |
87 api.chromium.runhooks() | 96 api.chromium.runhooks() |
88 api.isolate.clean_isolated_files(api.chromium.output_dir) | 97 api.isolate.clean_isolated_files(api.chromium.output_dir) |
89 api.chromium.compile(targets=targets) | 98 api.chromium.compile(targets=targets) |
90 api.isolate.remove_build_metadata() | 99 api.isolate.remove_build_metadata() |
91 | 100 |
92 # Will search for *.isolated.gen.json files in the build directory and isolate | 101 # Will search for *.isolated.gen.json files in the build directory and isolate |
93 # corresponding targets. | 102 # corresponding targets. |
94 api.isolate.isolate_tests( | 103 api.isolate.isolate_tests( |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 api.test('android') + | 193 api.test('android') + |
185 api.platform.name('linux') + | 194 api.platform.name('linux') + |
186 api.properties.scheduled() + | 195 api.properties.scheduled() + |
187 api.properties(configuration='Release', platform='android') | 196 api.properties(configuration='Release', platform='android') |
188 #api.override_step_data( | 197 #api.override_step_data( |
189 # 'dummy_target_1 on Android', | 198 # 'dummy_target_1 on Android', |
190 # # TODO(maruel): It's not going to generate gtest output. | 199 # # TODO(maruel): It's not going to generate gtest output. |
191 # #api.test_utils.canned_gtest_output(True) | 200 # #api.test_utils.canned_gtest_output(True) |
192 #) | 201 #) |
193 ) | 202 ) |
OLD | NEW |