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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 run_test_cmd.extend(['-f', test]) | 109 run_test_cmd.extend(['-f', test]) |
110 if test_obj.extra_args: | 110 if test_obj.extra_args: |
111 run_test_cmd.extend(test_obj.extra_args) | 111 run_test_cmd.extend(test_obj.extra_args) |
112 commands.append(run_test_cmd) | 112 commands.append(run_test_cmd) |
113 return commands | 113 return commands |
114 | 114 |
115 | 115 |
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 chrome_sync_shell_tests = ['sync'] |
119 std_host_tests = ['check_webview_licenses', 'findbugs'] | 120 std_host_tests = ['check_webview_licenses', 'findbugs'] |
120 std_build_steps = ['compile', 'zip_build'] | 121 std_build_steps = ['compile', 'zip_build'] |
121 std_test_steps = ['extract_build'] | 122 std_test_steps = ['extract_build'] |
122 std_tests = ['ui', 'unit', 'mojo'] | 123 std_tests = ['ui', 'unit', 'mojo'] |
123 telemetry_tests = ['telemetry_perf_unittests'] | 124 telemetry_tests = ['telemetry_perf_unittests'] |
124 flakiness_server = ( | 125 flakiness_server = ( |
125 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER) | 126 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER) |
126 experimental = ['--experimental'] | 127 experimental = ['--experimental'] |
127 bisect_chrome_output_dir = os.path.abspath( | 128 bisect_chrome_output_dir = os.path.abspath( |
128 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, | 129 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, |
(...skipping 29 matching lines...) Expand all Loading... |
158 '--cleanup'])), | 159 '--cleanup'])), |
159 B('fyi-x86-builder-dbg', | 160 B('fyi-x86-builder-dbg', |
160 H(compile_step + std_host_tests, experimental, target_arch='x86')), | 161 H(compile_step + std_host_tests, experimental, target_arch='x86')), |
161 B('fyi-builder-dbg', | 162 B('fyi-builder-dbg', |
162 H(std_build_steps + std_host_tests, experimental, | 163 H(std_build_steps + std_host_tests, experimental, |
163 extra_gyp='emma_coverage=1')), | 164 extra_gyp='emma_coverage=1')), |
164 B('x86-builder-dbg', | 165 B('x86-builder-dbg', |
165 H(compile_step + std_host_tests, target_arch='x86')), | 166 H(compile_step + std_host_tests, target_arch='x86')), |
166 B('fyi-builder-rel', H(std_build_steps, experimental)), | 167 B('fyi-builder-rel', H(std_build_steps, experimental)), |
167 B('fyi-tests', H(std_test_steps), | 168 B('fyi-tests', H(std_test_steps), |
168 T(std_tests, ['--experimental', flakiness_server, | 169 T(std_tests + chrome_sync_shell_tests, |
| 170 ['--experimental', flakiness_server, |
169 '--coverage-bucket', CHROMIUM_COVERAGE_BUCKET, | 171 '--coverage-bucket', CHROMIUM_COVERAGE_BUCKET, |
170 '--cleanup'])), | 172 '--cleanup'])), |
171 B('fyi-component-builder-tests-dbg', | 173 B('fyi-component-builder-tests-dbg', |
172 H(compile_step, extra_gyp='component=shared_library'), | 174 H(compile_step, extra_gyp='component=shared_library'), |
173 T(std_tests, ['--experimental', flakiness_server])), | 175 T(std_tests, ['--experimental', flakiness_server])), |
174 B('gpu-builder-tests-dbg', | 176 B('gpu-builder-tests-dbg', |
175 H(compile_step), | 177 H(compile_step), |
176 T(['gpu'], ['--install=ContentShell'])), | 178 T(['gpu'], ['--install=ContentShell'])), |
177 # Pass empty T([]) so that logcat monitor and device status check are run. | 179 # Pass empty T([]) so that logcat monitor and device status check are run. |
178 B('perf-bisect-builder-tests-dbg', | 180 B('perf-bisect-builder-tests-dbg', |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 for command in commands: | 312 for command in commands: |
311 print 'Will run: ', bb_utils.CommandToString(command) | 313 print 'Will run: ', bb_utils.CommandToString(command) |
312 print | 314 print |
313 | 315 |
314 env = GetEnvironment(bot_config.host_obj, options.testing) | 316 env = GetEnvironment(bot_config.host_obj, options.testing) |
315 return RunBotCommands(options, commands, env) | 317 return RunBotCommands(options, commands, env) |
316 | 318 |
317 | 319 |
318 if __name__ == '__main__': | 320 if __name__ == '__main__': |
319 sys.exit(main(sys.argv)) | 321 sys.exit(main(sys.argv)) |
OLD | NEW |