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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 """Subcommand of RunTestsCommands which runs linker tests.""" | 531 """Subcommand of RunTestsCommands which runs linker tests.""" |
532 runner_factory, tests = linker_setup.Setup(options, devices) | 532 runner_factory, tests = linker_setup.Setup(options, devices) |
533 | 533 |
534 results, exit_code = test_dispatcher.RunTests( | 534 results, exit_code = test_dispatcher.RunTests( |
535 tests, runner_factory, devices, shard=True, test_timeout=60, | 535 tests, runner_factory, devices, shard=True, test_timeout=60, |
536 num_retries=options.num_retries) | 536 num_retries=options.num_retries) |
537 | 537 |
538 report_results.LogFull( | 538 report_results.LogFull( |
539 results=results, | 539 results=results, |
540 test_type='Linker test', | 540 test_type='Linker test', |
541 test_package='ContentLinkerTest') | 541 test_package='ChromiumLinkerTest') |
542 | 542 |
543 return exit_code | 543 return exit_code |
544 | 544 |
545 | 545 |
546 def _RunInstrumentationTests(options, error_func, devices): | 546 def _RunInstrumentationTests(options, error_func, devices): |
547 """Subcommand of RunTestsCommands which runs instrumentation tests.""" | 547 """Subcommand of RunTestsCommands which runs instrumentation tests.""" |
548 instrumentation_options = ProcessInstrumentationOptions(options, error_func) | 548 instrumentation_options = ProcessInstrumentationOptions(options, error_func) |
549 | 549 |
550 if len(devices) > 1 and options.wait_for_debugger: | 550 if len(devices) > 1 and options.wait_for_debugger: |
551 logging.warning('Debugger can not be sharded, using first available device') | 551 logging.warning('Debugger can not be sharded, using first available device') |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 | 797 |
798 def main(): | 798 def main(): |
799 signal.signal(signal.SIGUSR1, DumpThreadStacks) | 799 signal.signal(signal.SIGUSR1, DumpThreadStacks) |
800 option_parser = command_option_parser.CommandOptionParser( | 800 option_parser = command_option_parser.CommandOptionParser( |
801 commands_dict=VALID_COMMANDS) | 801 commands_dict=VALID_COMMANDS) |
802 return command_option_parser.ParseAndExecute(option_parser) | 802 return command_option_parser.ParseAndExecute(option_parser) |
803 | 803 |
804 | 804 |
805 if __name__ == '__main__': | 805 if __name__ == '__main__': |
806 sys.exit(main()) | 806 sys.exit(main()) |
OLD | NEW |