OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2013 The Chromium Authors. All rights reserved. | 3 # Copyright 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 """Runs all types of tests from one unified interface.""" | 7 """Runs all types of tests from one unified interface.""" |
8 | 8 |
9 import collections | 9 import collections |
10 import logging | 10 import logging |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 options.test_runner = apk_helper.GetInstrumentationName(options.test_apk_path) | 284 options.test_runner = apk_helper.GetInstrumentationName(options.test_apk_path) |
285 | 285 |
286 return instrumentation_test_options.InstrumentationOptions( | 286 return instrumentation_test_options.InstrumentationOptions( |
287 options.tool, | 287 options.tool, |
288 options.cleanup_test_files, | 288 options.cleanup_test_files, |
289 options.push_deps, | 289 options.push_deps, |
290 options.annotations, | 290 options.annotations, |
291 options.exclude_annotations, | 291 options.exclude_annotations, |
292 options.test_filter, | 292 options.test_filter, |
293 options.test_data, | 293 options.test_data, |
294 options.test_runner, | |
295 options.save_perf_json, | 294 options.save_perf_json, |
296 options.screenshot_failures, | 295 options.screenshot_failures, |
297 options.wait_for_debugger, | 296 options.wait_for_debugger, |
298 options.coverage_dir, | 297 options.coverage_dir, |
299 options.test_apk, | 298 options.test_apk, |
300 options.test_apk_path, | 299 options.test_apk_path, |
301 options.test_apk_jar_path, | 300 options.test_apk_jar_path, |
| 301 options.test_runner, |
302 options.test_support_apk_path | 302 options.test_support_apk_path |
303 ) | 303 ) |
304 | 304 |
305 | 305 |
306 def AddUIAutomatorTestOptions(option_parser): | 306 def AddUIAutomatorTestOptions(option_parser): |
307 """Adds UI Automator test options to |option_parser|.""" | 307 """Adds UI Automator test options to |option_parser|.""" |
308 | 308 |
309 option_parser.usage = '%prog uiautomator [options]' | 309 option_parser.usage = '%prog uiautomator [options]' |
310 option_parser.commands_dict = {} | 310 option_parser.commands_dict = {} |
311 option_parser.example = ( | 311 option_parser.example = ( |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 | 827 |
828 def main(): | 828 def main(): |
829 signal.signal(signal.SIGUSR1, DumpThreadStacks) | 829 signal.signal(signal.SIGUSR1, DumpThreadStacks) |
830 option_parser = command_option_parser.CommandOptionParser( | 830 option_parser = command_option_parser.CommandOptionParser( |
831 commands_dict=VALID_COMMANDS) | 831 commands_dict=VALID_COMMANDS) |
832 return command_option_parser.ParseAndExecute(option_parser) | 832 return command_option_parser.ParseAndExecute(option_parser) |
833 | 833 |
834 | 834 |
835 if __name__ == '__main__': | 835 if __name__ == '__main__': |
836 sys.exit(main()) | 836 sys.exit(main()) |
OLD | NEW |