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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
122 std_tests = ['ui', 'unit'] | 122 std_tests = ['ui', 'unit'] |
123 trial_tests = [ | 123 trial_tests = [ |
124 'base_junit_tests', | 124 'base_junit_tests', |
125 'components_browsertests', | 125 'components_browsertests', |
126 'gfx_unittests', | 126 'gfx_unittests', |
127 'gl_unittests', | 127 'gl_unittests', |
128 ] | 128 ] |
129 flakiness_server = ( | 129 flakiness_server = ( |
130 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER) | 130 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER) |
131 experimental = ['--experimental'] | 131 experimental = ['--experimental'] |
132 run_mb = ['--run-mb'] | |
132 bisect_chrome_output_dir = os.path.abspath( | 133 bisect_chrome_output_dir = os.path.abspath( |
133 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, | 134 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, |
134 os.pardir, 'bisect', 'src', 'out')) | 135 os.pardir, 'bisect', 'src', 'out')) |
135 B = BotConfig | 136 B = BotConfig |
136 H = (lambda steps, extra_args=None, extra_gyp=None, target_arch=None: | 137 H = (lambda steps, extra_args=None, extra_gyp=None, target_arch=None: |
137 HostConfig('build/android/buildbot/bb_host_steps.py', steps, extra_args, | 138 HostConfig('build/android/buildbot/bb_host_steps.py', steps, extra_args, |
138 extra_gyp, target_arch)) | 139 extra_gyp, target_arch)) |
139 T = (lambda tests, extra_args=None: | 140 T = (lambda tests, extra_args=None: |
140 TestConfig('build/android/buildbot/bb_device_steps.py', tests, | 141 TestConfig('build/android/buildbot/bb_device_steps.py', tests, |
141 extra_args)) | 142 extra_args)) |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
173 T(std_tests + python_unittests, | 174 T(std_tests + python_unittests, |
174 ['--experimental', flakiness_server, | 175 ['--experimental', flakiness_server, |
175 '--coverage-bucket', CHROMIUM_COVERAGE_BUCKET, | 176 '--coverage-bucket', CHROMIUM_COVERAGE_BUCKET, |
176 '--cleanup'])), | 177 '--cleanup'])), |
177 B('user-build-fyi-tests-dbg', H(std_test_steps), | 178 B('user-build-fyi-tests-dbg', H(std_test_steps), |
178 T(sorted(trial_tests))), | 179 T(sorted(trial_tests))), |
179 B('fyi-component-builder-tests-dbg', | 180 B('fyi-component-builder-tests-dbg', |
180 H(compile_step, extra_gyp='component=shared_library'), | 181 H(compile_step, extra_gyp='component=shared_library'), |
181 T(std_tests, ['--experimental', flakiness_server])), | 182 T(std_tests, ['--experimental', flakiness_server])), |
182 B('gpu-builder-tests-dbg', | 183 B('gpu-builder-tests-dbg', |
183 H(compile_step), | 184 H(compile_step, extra_args=run_mb), |
mikecase (-- gone --)
2016/04/04 23:38:06
were you planning to add this arg to the chromedri
jbudorick
2016/04/04 23:41:48
realized the chromedriver bot is just a tester. :|
| |
184 T(['gpu'], ['--install=ContentShell'])), | 185 T(['gpu'], ['--install=ContentShell'])), |
185 # Pass empty T([]) so that logcat monitor and device status check are run. | 186 # Pass empty T([]) so that logcat monitor and device status check are run. |
186 B('perf-bisect-builder-tests-dbg', | 187 B('perf-bisect-builder-tests-dbg', |
187 H(['bisect_perf_regression']), | 188 H(['bisect_perf_regression']), |
188 T([], ['--chrome-output-dir', bisect_chrome_output_dir])), | 189 T([], ['--chrome-output-dir', bisect_chrome_output_dir])), |
189 B('perf-tests-rel', H(std_test_steps), | 190 B('perf-tests-rel', H(std_test_steps), |
190 T([], ['--cleanup'])), | 191 T([], ['--cleanup'])), |
191 B('webkit-latest-webkit-tests', H(std_test_steps), | 192 B('webkit-latest-webkit-tests', H(std_test_steps), |
192 T(['webkit_layout', 'webkit'], ['--cleanup', '--auto-reconnect'])), | 193 T(['webkit_layout', 'webkit'], ['--cleanup', '--auto-reconnect'])), |
193 B('webkit-latest-contentshell', H(compile_step), | 194 B('webkit-latest-contentshell', H(compile_step), |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
306 for command in commands: | 307 for command in commands: |
307 print 'Will run: ', bb_utils.CommandToString(command) | 308 print 'Will run: ', bb_utils.CommandToString(command) |
308 print | 309 print |
309 | 310 |
310 env = GetEnvironment(bot_config.host_obj, options.testing) | 311 env = GetEnvironment(bot_config.host_obj, options.testing) |
311 return RunBotCommands(options, commands, env) | 312 return RunBotCommands(options, commands, env) |
312 | 313 |
313 | 314 |
314 if __name__ == '__main__': | 315 if __name__ == '__main__': |
315 sys.exit(main(sys.argv)) | 316 sys.exit(main(sys.argv)) |
OLD | NEW |