OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2013 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 import collections | 7 import collections |
8 import copy | 8 import copy |
9 import json | 9 import json |
10 import os | 10 import os |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 compile_step = ['compile'] | 117 compile_step = ['compile'] |
118 chrome_proxy_tests = ['chrome_proxy'] | 118 chrome_proxy_tests = ['chrome_proxy'] |
119 python_unittests = ['python_unittests'] | 119 python_unittests = ['python_unittests'] |
120 std_host_tests = ['check_webview_licenses'] | 120 std_host_tests = ['check_webview_licenses'] |
121 std_build_steps = ['compile', 'zip_build'] | 121 std_build_steps = ['compile', 'zip_build'] |
122 std_test_steps = ['extract_build'] | 122 std_test_steps = ['extract_build'] |
123 std_tests = ['ui', 'unit'] | 123 std_tests = ['ui', 'unit'] |
124 telemetry_tests = ['telemetry_perf_unittests'] | 124 telemetry_tests = ['telemetry_perf_unittests'] |
125 telemetry_tests_user_build = ['telemetry_unittests', | 125 telemetry_tests_user_build = ['telemetry_unittests', |
126 'telemetry_perf_unittests'] | 126 'telemetry_perf_unittests'] |
| 127 trial_tests = [ |
| 128 'base_junit_tests', |
| 129 'components_browsertests', |
| 130 'gfx_unittests', |
| 131 'gl_unittests', |
| 132 ] |
127 flakiness_server = ( | 133 flakiness_server = ( |
128 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER) | 134 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER) |
129 experimental = ['--experimental'] | 135 experimental = ['--experimental'] |
130 bisect_chrome_output_dir = os.path.abspath( | 136 bisect_chrome_output_dir = os.path.abspath( |
131 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, | 137 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, |
132 os.pardir, 'bisect', 'src', 'out')) | 138 os.pardir, 'bisect', 'src', 'out')) |
133 B = BotConfig | 139 B = BotConfig |
134 H = (lambda steps, extra_args=None, extra_gyp=None, target_arch=None: | 140 H = (lambda steps, extra_args=None, extra_gyp=None, target_arch=None: |
135 HostConfig('build/android/buildbot/bb_host_steps.py', steps, extra_args, | 141 HostConfig('build/android/buildbot/bb_host_steps.py', steps, extra_args, |
136 extra_gyp, target_arch)) | 142 extra_gyp, target_arch)) |
(...skipping 30 matching lines...) Expand all Loading... |
167 extra_gyp='emma_coverage=1')), | 173 extra_gyp='emma_coverage=1')), |
168 B('x86-builder-dbg', | 174 B('x86-builder-dbg', |
169 H(compile_step + std_host_tests, target_arch='ia32')), | 175 H(compile_step + std_host_tests, target_arch='ia32')), |
170 B('fyi-builder-rel', H(std_build_steps, experimental)), | 176 B('fyi-builder-rel', H(std_build_steps, experimental)), |
171 B('fyi-tests', H(std_test_steps), | 177 B('fyi-tests', H(std_test_steps), |
172 T(std_tests + python_unittests, | 178 T(std_tests + python_unittests, |
173 ['--experimental', flakiness_server, | 179 ['--experimental', flakiness_server, |
174 '--coverage-bucket', CHROMIUM_COVERAGE_BUCKET, | 180 '--coverage-bucket', CHROMIUM_COVERAGE_BUCKET, |
175 '--cleanup'])), | 181 '--cleanup'])), |
176 B('user-build-fyi-tests-dbg', H(std_test_steps), | 182 B('user-build-fyi-tests-dbg', H(std_test_steps), |
177 T(telemetry_tests_user_build + ['components_browsertests'])), | 183 T(sorted(telemetry_tests_user_build + trial_tests))), |
178 B('fyi-component-builder-tests-dbg', | 184 B('fyi-component-builder-tests-dbg', |
179 H(compile_step, extra_gyp='component=shared_library'), | 185 H(compile_step, extra_gyp='component=shared_library'), |
180 T(std_tests, ['--experimental', flakiness_server])), | 186 T(std_tests, ['--experimental', flakiness_server])), |
181 B('gpu-builder-tests-dbg', | 187 B('gpu-builder-tests-dbg', |
182 H(compile_step), | 188 H(compile_step), |
183 T(['gpu'], ['--install=ContentShell'])), | 189 T(['gpu'], ['--install=ContentShell'])), |
184 # Pass empty T([]) so that logcat monitor and device status check are run. | 190 # Pass empty T([]) so that logcat monitor and device status check are run. |
185 B('perf-bisect-builder-tests-dbg', | 191 B('perf-bisect-builder-tests-dbg', |
186 H(['bisect_perf_regression']), | 192 H(['bisect_perf_regression']), |
187 T([], ['--chrome-output-dir', bisect_chrome_output_dir])), | 193 T([], ['--chrome-output-dir', bisect_chrome_output_dir])), |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 for command in commands: | 311 for command in commands: |
306 print 'Will run: ', bb_utils.CommandToString(command) | 312 print 'Will run: ', bb_utils.CommandToString(command) |
307 print | 313 print |
308 | 314 |
309 env = GetEnvironment(bot_config.host_obj, options.testing) | 315 env = GetEnvironment(bot_config.host_obj, options.testing) |
310 return RunBotCommands(options, commands, env) | 316 return RunBotCommands(options, commands, env) |
311 | 317 |
312 | 318 |
313 if __name__ == '__main__': | 319 if __name__ == '__main__': |
314 sys.exit(main(sys.argv)) | 320 sys.exit(main(sys.argv)) |
OLD | NEW |