| 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'] | |
| 120 python_unittests = ['python_unittests'] | 119 python_unittests = ['python_unittests'] |
| 121 std_host_tests = ['check_webview_licenses', 'findbugs'] | 120 std_host_tests = ['check_webview_licenses', 'findbugs'] |
| 122 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'] |
| 123 std_build_steps = ['compile', 'zip_build'] | 122 std_build_steps = ['compile', 'zip_build'] |
| 124 std_test_steps = ['extract_build'] | 123 std_test_steps = ['extract_build'] |
| 125 std_tests = ['ui', 'unit'] | 124 std_tests = ['ui', 'unit'] |
| 126 telemetry_tests = ['telemetry_perf_unittests'] | 125 telemetry_tests = ['telemetry_perf_unittests'] |
| 127 flakiness_server = ( | 126 flakiness_server = ( |
| 128 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER) | 127 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER) |
| 129 experimental = ['--experimental'] | 128 experimental = ['--experimental'] |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 '--cleanup'])), | 160 '--cleanup'])), |
| 162 B('fyi-x86-builder-dbg', | 161 B('fyi-x86-builder-dbg', |
| 163 H(compile_step + std_host_tests, experimental, target_arch='ia32')), | 162 H(compile_step + std_host_tests, experimental, target_arch='ia32')), |
| 164 B('fyi-builder-dbg', | 163 B('fyi-builder-dbg', |
| 165 H(std_build_steps + emma_coverage_tests, experimental, | 164 H(std_build_steps + emma_coverage_tests, experimental, |
| 166 extra_gyp='emma_coverage=1')), | 165 extra_gyp='emma_coverage=1')), |
| 167 B('x86-builder-dbg', | 166 B('x86-builder-dbg', |
| 168 H(compile_step + std_host_tests, target_arch='ia32')), | 167 H(compile_step + std_host_tests, target_arch='ia32')), |
| 169 B('fyi-builder-rel', H(std_build_steps, experimental)), | 168 B('fyi-builder-rel', H(std_build_steps, experimental)), |
| 170 B('fyi-tests', H(std_test_steps), | 169 B('fyi-tests', H(std_test_steps), |
| 171 T(std_tests + chrome_sync_shell_tests + python_unittests, | 170 T(std_tests + python_unittests, |
| 172 ['--experimental', flakiness_server, | 171 ['--experimental', flakiness_server, |
| 173 '--coverage-bucket', CHROMIUM_COVERAGE_BUCKET, | 172 '--coverage-bucket', CHROMIUM_COVERAGE_BUCKET, |
| 174 '--cleanup'])), | 173 '--cleanup'])), |
| 175 B('fyi-component-builder-tests-dbg', | 174 B('fyi-component-builder-tests-dbg', |
| 176 H(compile_step, extra_gyp='component=shared_library'), | 175 H(compile_step, extra_gyp='component=shared_library'), |
| 177 T(std_tests, ['--experimental', flakiness_server])), | 176 T(std_tests, ['--experimental', flakiness_server])), |
| 178 B('gpu-builder-tests-dbg', | 177 B('gpu-builder-tests-dbg', |
| 179 H(compile_step), | 178 H(compile_step), |
| 180 T(['gpu'], ['--install=ContentShell'])), | 179 T(['gpu'], ['--install=ContentShell'])), |
| 181 # Pass empty T([]) so that logcat monitor and device status check are run. | 180 # Pass empty T([]) so that logcat monitor and device status check are run. |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 for command in commands: | 301 for command in commands: |
| 303 print 'Will run: ', bb_utils.CommandToString(command) | 302 print 'Will run: ', bb_utils.CommandToString(command) |
| 304 print | 303 print |
| 305 | 304 |
| 306 env = GetEnvironment(bot_config.host_obj, options.testing) | 305 env = GetEnvironment(bot_config.host_obj, options.testing) |
| 307 return RunBotCommands(options, commands, env) | 306 return RunBotCommands(options, commands, env) |
| 308 | 307 |
| 309 | 308 |
| 310 if __name__ == '__main__': | 309 if __name__ == '__main__': |
| 311 sys.exit(main(sys.argv)) | 310 sys.exit(main(sys.argv)) |
| OLD | NEW |