| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import collections | 6 import collections |
| 7 import glob | 7 import glob |
| 8 import hashlib | 8 import hashlib |
| 9 import json | 9 import json |
| 10 import os | 10 import os |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 if not suites_options: | 138 if not suites_options: |
| 139 suites_options = {} | 139 suites_options = {} |
| 140 | 140 |
| 141 args = ['--verbose'] | 141 args = ['--verbose'] |
| 142 if options.target == 'Release': | 142 if options.target == 'Release': |
| 143 args.append('--release') | 143 args.append('--release') |
| 144 if options.asan: | 144 if options.asan: |
| 145 args.append('--tool=asan') | 145 args.append('--tool=asan') |
| 146 if options.gtest_filter: | 146 if options.gtest_filter: |
| 147 args.append('--gtest-filter=%s' % options.gtest_filter) | 147 args.append('--gtest-filter=%s' % options.gtest_filter) |
| 148 if options.flakiness_server: |
| 149 args.append('--flakiness-dashboard-server=%s' % |
| 150 options.flakiness_server) |
| 148 | 151 |
| 149 for suite in suites: | 152 for suite in suites: |
| 150 bb_annotations.PrintNamedStep(suite) | 153 bb_annotations.PrintNamedStep(suite) |
| 151 cmd = [suite] + args | 154 cmd = [suite] + args |
| 152 cmd += suites_options.get(suite, []) | 155 cmd += suites_options.get(suite, []) |
| 153 if suite == 'content_browsertests': | 156 if suite == 'content_browsertests': |
| 154 cmd.append('--num_retries=1') | 157 cmd.append('--num_retries=1') |
| 155 _RunTest(options, cmd, suite) | 158 _RunTest(options, cmd, suite) |
| 156 | 159 |
| 157 | 160 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 179 if devices: | 182 if devices: |
| 180 args = args + ['--device', devices[0]] | 183 args = args + ['--device', devices[0]] |
| 181 bb_annotations.PrintNamedStep('chrome_proxy') | 184 bb_annotations.PrintNamedStep('chrome_proxy') |
| 182 RunCmd(['tools/chrome_proxy/run_tests'] + args) | 185 RunCmd(['tools/chrome_proxy/run_tests'] + args) |
| 183 | 186 |
| 184 def RunChromeSyncShellTests(options): | 187 def RunChromeSyncShellTests(options): |
| 185 """Run the chrome sync shell tests""" | 188 """Run the chrome sync shell tests""" |
| 186 test = I('ChromeSyncShell', | 189 test = I('ChromeSyncShell', |
| 187 'ChromeSyncShell.apk', | 190 'ChromeSyncShell.apk', |
| 188 'org.chromium.chrome.browser.sync', | 191 'org.chromium.chrome.browser.sync', |
| 189 'ChromeSyncShellTest.apk', | 192 'ChromeSyncShellTest', |
| 190 'chrome:chrome/test/data/android/device_files') | 193 'chrome:chrome/test/data/android/device_files') |
| 191 RunInstrumentationSuite(options, test) | 194 RunInstrumentationSuite(options, test) |
| 192 | 195 |
| 193 def RunTelemetryPerfUnitTests(options): | 196 def RunTelemetryPerfUnitTests(options): |
| 194 """Runs the telemetry perf unit tests. | 197 """Runs the telemetry perf unit tests. |
| 195 | 198 |
| 196 Args: | 199 Args: |
| 197 options: options object. | 200 options: options object. |
| 198 """ | 201 """ |
| 199 InstallApk(options, INSTRUMENTATION_TESTS['ChromeShell'], False) | 202 InstallApk(options, INSTRUMENTATION_TESTS['ChromeShell'], False) |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 | 735 |
| 733 if options.coverage_bucket: | 736 if options.coverage_bucket: |
| 734 setattr(options, 'coverage_dir', | 737 setattr(options, 'coverage_dir', |
| 735 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 738 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
| 736 | 739 |
| 737 MainTestWrapper(options) | 740 MainTestWrapper(options) |
| 738 | 741 |
| 739 | 742 |
| 740 if __name__ == '__main__': | 743 if __name__ == '__main__': |
| 741 sys.exit(main(sys.argv)) | 744 sys.exit(main(sys.argv)) |
| OLD | NEW |