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 |
11 import pipes | 11 import pipes |
12 import re | 12 import re |
13 import subprocess | 13 import subprocess |
14 import sys | 14 import sys |
15 | 15 |
16 import bb_utils | 16 import bb_utils |
17 | 17 |
18 sys.path.append(os.path.join(os.path.dirname(__file__), '..')) | 18 sys.path.append(os.path.join(os.path.dirname(__file__), '..')) |
19 from pylib import constants | 19 from pylib import constants |
20 | 20 |
21 | 21 |
| 22 CHROMIUM_COVERAGE_BUCKET = 'chromium-code-coverage' |
| 23 |
22 _BotConfig = collections.namedtuple( | 24 _BotConfig = collections.namedtuple( |
23 'BotConfig', ['bot_id', 'host_obj', 'test_obj']) | 25 'BotConfig', ['bot_id', 'host_obj', 'test_obj']) |
24 | 26 |
25 HostConfig = collections.namedtuple( | 27 HostConfig = collections.namedtuple( |
26 'HostConfig', | 28 'HostConfig', |
27 ['script', 'host_steps', 'extra_args', 'extra_gyp_defines', 'target_arch']) | 29 ['script', 'host_steps', 'extra_args', 'extra_gyp_defines', 'target_arch']) |
28 | 30 |
29 TestConfig = collections.namedtuple('Tests', ['script', 'tests', 'extra_args']) | 31 TestConfig = collections.namedtuple('Tests', ['script', 'tests', 'extra_args']) |
30 | 32 |
31 | 33 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 B('main-tests', H(std_test_steps), T(std_tests, [flakiness_server])), | 139 B('main-tests', H(std_test_steps), T(std_tests, [flakiness_server])), |
138 | 140 |
139 # Other waterfalls | 141 # Other waterfalls |
140 B('asan-builder-tests', H(compile_step, extra_gyp='asan=1'), | 142 B('asan-builder-tests', H(compile_step, extra_gyp='asan=1'), |
141 T(std_tests, ['--asan'])), | 143 T(std_tests, ['--asan'])), |
142 B('chromedriver-fyi-tests-dbg', H(std_test_steps), | 144 B('chromedriver-fyi-tests-dbg', H(std_test_steps), |
143 T(['chromedriver'], ['--install=ChromiumTestShell'])), | 145 T(['chromedriver'], ['--install=ChromiumTestShell'])), |
144 B('fyi-x86-builder-dbg', | 146 B('fyi-x86-builder-dbg', |
145 H(compile_step + std_host_tests, experimental, target_arch='x86')), | 147 H(compile_step + std_host_tests, experimental, target_arch='x86')), |
146 B('fyi-builder-dbg', | 148 B('fyi-builder-dbg', |
147 H(std_build_steps + std_host_tests, experimental)), | 149 H(std_build_steps + std_host_tests, experimental, |
| 150 extra_gyp='emma_coverage=1')), |
148 B('x86-builder-dbg', | 151 B('x86-builder-dbg', |
149 H(compile_step + std_host_tests, target_arch='x86')), | 152 H(compile_step + std_host_tests, target_arch='x86')), |
150 B('fyi-builder-rel', H(std_build_steps, experimental)), | 153 B('fyi-builder-rel', H(std_build_steps, experimental)), |
151 B('fyi-tests', H(std_test_steps), | 154 B('fyi-tests', H(std_test_steps), |
152 T(std_tests, ['--experimental', flakiness_server])), | 155 T(std_tests, ['--experimental', flakiness_server, |
| 156 '--coverage-bucket', CHROMIUM_COVERAGE_BUCKET])), |
153 B('fyi-component-builder-tests-dbg', | 157 B('fyi-component-builder-tests-dbg', |
154 H(compile_step, extra_gyp='component=shared_library'), | 158 H(compile_step, extra_gyp='component=shared_library'), |
155 T(std_tests, ['--experimental', flakiness_server])), | 159 T(std_tests, ['--experimental', flakiness_server])), |
156 B('perf-bisect-builder-tests-dbg', H(['bisect_perf_regression'])), | 160 B('perf-bisect-builder-tests-dbg', H(['bisect_perf_regression'])), |
157 B('perf-tests-rel', H(std_test_steps), | 161 B('perf-tests-rel', H(std_test_steps), |
158 T([], ['--install=ChromiumTestShell'])), | 162 T([], ['--install=ChromiumTestShell'])), |
159 B('webkit-latest-webkit-tests', H(std_test_steps), | 163 B('webkit-latest-webkit-tests', H(std_test_steps), |
160 T(['webkit_layout', 'webkit'], ['--auto-reconnect'])), | 164 T(['webkit_layout', 'webkit'], ['--auto-reconnect'])), |
161 B('webkit-latest-contentshell', H(compile_step), | 165 B('webkit-latest-contentshell', H(compile_step), |
162 T(['webkit_layout'], ['--auto-reconnect'])), | 166 T(['webkit_layout'], ['--auto-reconnect'])), |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 for command in commands: | 268 for command in commands: |
265 print 'Will run: ', bb_utils.CommandToString(command) | 269 print 'Will run: ', bb_utils.CommandToString(command) |
266 print | 270 print |
267 | 271 |
268 env = GetEnvironment(bot_config.host_obj, options.testing) | 272 env = GetEnvironment(bot_config.host_obj, options.testing) |
269 return RunBotCommands(options, commands, env) | 273 return RunBotCommands(options, commands, env) |
270 | 274 |
271 | 275 |
272 if __name__ == '__main__': | 276 if __name__ == '__main__': |
273 sys.exit(main(sys.argv)) | 277 sys.exit(main(sys.argv)) |
OLD | NEW |