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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 def GetBotStepMap(): | 116 def GetBotStepMap(): |
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', 'findbugs'] | 120 std_host_tests = ['check_webview_licenses', 'findbugs'] |
121 emma_coverage_tests = [x for x in std_host_tests if x is not 'findbugs'] | 121 emma_coverage_tests = [x for x in std_host_tests if x is not 'findbugs'] |
122 std_build_steps = ['compile', 'zip_build'] | 122 std_build_steps = ['compile', 'zip_build'] |
123 std_test_steps = ['extract_build'] | 123 std_test_steps = ['extract_build'] |
124 std_tests = ['ui', 'unit'] | 124 std_tests = ['ui', 'unit'] |
125 telemetry_tests = ['telemetry_perf_unittests'] | 125 telemetry_tests = ['telemetry_perf_unittests'] |
| 126 telemetry_tests_user_build = ['telemetry_unittests', |
| 127 'telemetry_perf_unittests'] |
126 flakiness_server = ( | 128 flakiness_server = ( |
127 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER) | 129 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER) |
128 experimental = ['--experimental'] | 130 experimental = ['--experimental'] |
129 bisect_chrome_output_dir = os.path.abspath( | 131 bisect_chrome_output_dir = os.path.abspath( |
130 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, | 132 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, |
131 os.pardir, 'bisect', 'src', 'out')) | 133 os.pardir, 'bisect', 'src', 'out')) |
132 B = BotConfig | 134 B = BotConfig |
133 H = (lambda steps, extra_args=None, extra_gyp=None, target_arch=None : | 135 H = (lambda steps, extra_args=None, extra_gyp=None, target_arch=None : |
134 HostConfig('build/android/buildbot/bb_host_steps.py', steps, extra_args, | 136 HostConfig('build/android/buildbot/bb_host_steps.py', steps, extra_args, |
135 extra_gyp, target_arch)) | 137 extra_gyp, target_arch)) |
(...skipping 28 matching lines...) Expand all Loading... |
164 H(std_build_steps + emma_coverage_tests, experimental, | 166 H(std_build_steps + emma_coverage_tests, experimental, |
165 extra_gyp='emma_coverage=1')), | 167 extra_gyp='emma_coverage=1')), |
166 B('x86-builder-dbg', | 168 B('x86-builder-dbg', |
167 H(compile_step + std_host_tests, target_arch='ia32')), | 169 H(compile_step + std_host_tests, target_arch='ia32')), |
168 B('fyi-builder-rel', H(std_build_steps, experimental)), | 170 B('fyi-builder-rel', H(std_build_steps, experimental)), |
169 B('fyi-tests', H(std_test_steps), | 171 B('fyi-tests', H(std_test_steps), |
170 T(std_tests + python_unittests, | 172 T(std_tests + python_unittests, |
171 ['--experimental', flakiness_server, | 173 ['--experimental', flakiness_server, |
172 '--coverage-bucket', CHROMIUM_COVERAGE_BUCKET, | 174 '--coverage-bucket', CHROMIUM_COVERAGE_BUCKET, |
173 '--cleanup'])), | 175 '--cleanup'])), |
| 176 B('user-build-fyi-tests-dbg', H(std_test_steps), |
| 177 T(telemetry_tests_user_build)), |
174 B('fyi-component-builder-tests-dbg', | 178 B('fyi-component-builder-tests-dbg', |
175 H(compile_step, extra_gyp='component=shared_library'), | 179 H(compile_step, extra_gyp='component=shared_library'), |
176 T(std_tests, ['--experimental', flakiness_server])), | 180 T(std_tests, ['--experimental', flakiness_server])), |
177 B('gpu-builder-tests-dbg', | 181 B('gpu-builder-tests-dbg', |
178 H(compile_step), | 182 H(compile_step), |
179 T(['gpu'], ['--install=ContentShell'])), | 183 T(['gpu'], ['--install=ContentShell'])), |
180 # Pass empty T([]) so that logcat monitor and device status check are run. | 184 # Pass empty T([]) so that logcat monitor and device status check are run. |
181 B('perf-bisect-builder-tests-dbg', | 185 B('perf-bisect-builder-tests-dbg', |
182 H(['bisect_perf_regression']), | 186 H(['bisect_perf_regression']), |
183 T([], ['--chrome-output-dir', bisect_chrome_output_dir])), | 187 T([], ['--chrome-output-dir', bisect_chrome_output_dir])), |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 for command in commands: | 305 for command in commands: |
302 print 'Will run: ', bb_utils.CommandToString(command) | 306 print 'Will run: ', bb_utils.CommandToString(command) |
303 print | 307 print |
304 | 308 |
305 env = GetEnvironment(bot_config.host_obj, options.testing) | 309 env = GetEnvironment(bot_config.host_obj, options.testing) |
306 return RunBotCommands(options, commands, env) | 310 return RunBotCommands(options, commands, env) |
307 | 311 |
308 | 312 |
309 if __name__ == '__main__': | 313 if __name__ == '__main__': |
310 sys.exit(main(sys.argv)) | 314 sys.exit(main(sys.argv)) |
OLD | NEW |