• Home
  • Raw
  • Download

Lines Matching refs:options

92 def ProcessCommonOptions(options):  argument
94 run_tests_helper.SetLogLevel(options.verbose_count)
95 constants.SetBuildType(options.build_type)
143 def ProcessGTestOptions(options): argument
149 if options.suite_name == 'help':
158 if options.suite_name:
159 options.suite_name = [options.suite_name]
161 options.suite_name = [s for s in gtest_config.STABLE_TEST_SUITES]
197 def ProcessJavaTestOptions(options): argument
200 if options.annotation_str:
201 options.annotations = options.annotation_str.split(',')
202 elif options.test_filter:
203 options.annotations = []
205 options.annotations = ['Smoke', 'SmallTest', 'MediumTest', 'LargeTest',
208 if options.exclude_annotation_str:
209 options.exclude_annotations = options.exclude_annotation_str.split(',')
211 options.exclude_annotations = []
247 def ProcessInstrumentationOptions(options, error_func): argument
259 ProcessJavaTestOptions(options)
261 if options.java_only and options.python_only:
264 options.run_java_tests = True
265 options.run_python_tests = True
266 if options.java_only:
267 options.run_python_tests = False
268 elif options.python_only:
269 options.run_java_tests = False
271 if not options.host_driven_root:
272 options.run_python_tests = False
274 if not options.test_apk:
278 options.test_apk_path = os.path.join(
281 '%s.apk' % options.test_apk)
282 options.test_apk_jar_path = os.path.join(
285 '%s.jar' % options.test_apk)
286 options.test_support_apk_path = '%sSupport%s' % (
287 os.path.splitext(options.test_apk_path))
289 options.test_runner = apk_helper.GetInstrumentationName(options.test_apk_path)
292 options.tool,
293 options.cleanup_test_files,
294 options.push_deps,
295 options.annotations,
296 options.exclude_annotations,
297 options.test_filter,
298 options.test_data,
299 options.save_perf_json,
300 options.screenshot_failures,
301 options.wait_for_debugger,
302 options.coverage_dir,
303 options.test_apk,
304 options.test_apk_path,
305 options.test_apk_jar_path,
306 options.test_runner,
307 options.test_support_apk_path,
308 options.device_flags
334 def ProcessUIAutomatorOptions(options, error_func): argument
346 ProcessJavaTestOptions(options)
348 if not options.package:
351 if options.package not in constants.PACKAGE_INFO:
354 if not options.test_jar:
357 if os.path.exists(options.test_jar):
359 options.uiautomator_jar = options.test_jar
361 options.uiautomator_jar = os.path.join(
364 '%s.dex.jar' % options.test_jar)
365 options.uiautomator_info_jar = (
366 options.uiautomator_jar[:options.uiautomator_jar.find('.dex.jar')] +
370 options.tool,
371 options.cleanup_test_files,
372 options.push_deps,
373 options.annotations,
374 options.exclude_annotations,
375 options.test_filter,
376 options.test_data,
377 options.save_perf_json,
378 options.screenshot_failures,
379 options.uiautomator_jar,
380 options.uiautomator_info_jar,
381 options.package)
407 def ProcessJUnitTestOptions(options, error_func): argument
409 if not options.test_suite:
411 return options
447 def ProcessMonkeyTestOptions(options, error_func): argument
458 if not options.package:
461 if options.package not in constants.PACKAGE_INFO:
464 category = options.category
466 category = options.category.split(',')
469 options.verbose_count,
470 options.package,
471 options.event_count,
473 options.throttle,
474 options.seed,
475 options.extra_args)
520 def ProcessPerfTestOptions(options, args, error_func): argument
533 [options.steps, options.print_step, options.single_step]))
537 if options.single_step:
540 options.steps, options.flaky_steps, options.output_json_list,
541 options.print_step, options.no_timeout, options.test_filter,
542 options.dry_run, single_step)
545 def _RunGTests(options, devices): argument
547 ProcessGTestOptions(options)
550 for suite_name in options.suite_name:
554 options.tool,
555 options.cleanup_test_files,
556 options.push_deps,
557 options.test_filter,
558 options.run_disabled,
559 options.test_arguments,
560 options.timeout,
561 options.isolate_file_path,
567 num_retries=options.num_retries)
576 flakiness_server=options.flakiness_dashboard_server)
584 def _RunLinkerTests(options, devices): argument
586 runner_factory, tests = linker_setup.Setup(options, devices)
590 num_retries=options.num_retries)
600 def _RunInstrumentationTests(options, error_func, devices): argument
602 instrumentation_options = ProcessInstrumentationOptions(options, error_func)
604 if len(devices) > 1 and options.wait_for_debugger:
611 if options.run_java_tests:
616 num_retries=options.num_retries)
620 if options.run_python_tests:
622 options.host_driven_root, options.official_build,
628 num_retries=options.num_retries)
636 if options.device_flags:
637 options.device_flags = os.path.join(constants.DIR_SOURCE_ROOT,
638 options.device_flags)
643 test_package=os.path.basename(options.test_apk),
644 annotation=options.annotations,
645 flakiness_server=options.flakiness_dashboard_server)
650 def _RunUIAutomatorTests(options, error_func, devices): argument
652 uiautomator_options = ProcessUIAutomatorOptions(options, error_func)
658 num_retries=options.num_retries)
663 test_package=os.path.basename(options.test_jar),
664 annotation=options.annotations,
665 flakiness_server=options.flakiness_dashboard_server)
670 def _RunJUnitTests(options, error_func): argument
672 junit_options = ProcessJUnitTestOptions(options, error_func)
679 def _RunMonkeyTests(options, error_func, devices): argument
681 monkey_options = ProcessMonkeyTestOptions(options, error_func)
687 num_retries=options.num_retries)
697 def _RunPerfTests(options, args, error_func): argument
699 perf_options = ProcessPerfTestOptions(options, args, error_func)
718 num_retries=options.num_retries)
758 def RunTestsCommand(command, options, args, option_parser): argument
781 if ((options.single_step and len(args) <= 2) or
782 (not options.single_step and len(args) > 2)):
786 ProcessCommonOptions(options)
788 devices = _GetAttachedDevices(options.test_device)
795 return _RunGTests(options, devices)
797 return _RunLinkerTests(options, devices)
799 return _RunInstrumentationTests(options, option_parser.error, devices)
801 return _RunUIAutomatorTests(options, option_parser.error, devices)
803 return _RunJUnitTests(options, option_parser.error)
805 return _RunMonkeyTests(options, option_parser.error, devices)
807 return _RunPerfTests(options, args, option_parser.error)