| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 '--update-log']) | 141 '--update-log']) |
| 142 | 142 |
| 143 | 143 |
| 144 def RunTelemetryPerfUnitTests(options): | 144 def RunTelemetryPerfUnitTests(options): |
| 145 """Runs the telemetry perf unit tests. | 145 """Runs the telemetry perf unit tests. |
| 146 | 146 |
| 147 Args: | 147 Args: |
| 148 options: options object. | 148 options: options object. |
| 149 """ | 149 """ |
| 150 InstallApk(options, INSTRUMENTATION_TESTS['ChromeShell'], False) | 150 InstallApk(options, INSTRUMENTATION_TESTS['ChromeShell'], False) |
| 151 args = ['--browser', 'android-chromium-testshell'] | 151 args = ['--browser', 'android-chrome-shell'] |
| 152 devices = android_commands.GetAttachedDevices() | 152 devices = android_commands.GetAttachedDevices() |
| 153 if devices: | 153 if devices: |
| 154 args = args + ['--device', devices[0]] | 154 args = args + ['--device', devices[0]] |
| 155 bb_annotations.PrintNamedStep('telemetry_perf_unittests') | 155 bb_annotations.PrintNamedStep('telemetry_perf_unittests') |
| 156 RunCmd(['tools/perf/run_tests'] + args) | 156 RunCmd(['tools/perf/run_tests'] + args) |
| 157 | 157 |
| 158 | 158 |
| 159 def RunMojoTests(options): | 159 def RunMojoTests(options): |
| 160 """Runs the mojo unit tests. | 160 """Runs the mojo unit tests. |
| 161 | 161 |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 661 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
| 662 if options.coverage_bucket: | 662 if options.coverage_bucket: |
| 663 setattr(options, 'coverage_dir', | 663 setattr(options, 'coverage_dir', |
| 664 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 664 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
| 665 | 665 |
| 666 MainTestWrapper(options) | 666 MainTestWrapper(options) |
| 667 | 667 |
| 668 | 668 |
| 669 if __name__ == '__main__': | 669 if __name__ == '__main__': |
| 670 sys.exit(main(sys.argv)) | 670 sys.exit(main(sys.argv)) |
| OLD | NEW |