| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Utility class to build the chromium master BuildFactory's. | 5 """Utility class to build the chromium master BuildFactory's. |
| 6 | 6 |
| 7 Based on gclient_factory.py and adds chromium-specific steps.""" | 7 Based on gclient_factory.py and adds chromium-specific steps.""" |
| 8 | 8 |
| 9 import re | 9 import re |
| 10 | 10 |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 f.AddBuildrunnerGTest('chromedriver_tests', fp) | 527 f.AddBuildrunnerGTest('chromedriver_tests', fp) |
| 528 if R('content_browsertests'): | 528 if R('content_browsertests'): |
| 529 f.AddGTestTestStep('content_browsertests', fp) | 529 f.AddGTestTestStep('content_browsertests', fp) |
| 530 if R('content_browsertests_br'): | 530 if R('content_browsertests_br'): |
| 531 f.AddBuildrunnerGTest('content_browsertests', fp) | 531 f.AddBuildrunnerGTest('content_browsertests', fp) |
| 532 if R('ash_browsertests'): | 532 if R('ash_browsertests'): |
| 533 ash_fp = fp.copy() | 533 ash_fp = fp.copy() |
| 534 ash_fp['browser_tests_extra_options'] = ['--ash-browsertests'] | 534 ash_fp['browser_tests_extra_options'] = ['--ash-browsertests'] |
| 535 f.AddBuildrunnerBrowserTests(ash_fp) | 535 f.AddBuildrunnerBrowserTests(ash_fp) |
| 536 | 536 |
| 537 # Big, UI tests: |
| 538 if R('dom_checker'): |
| 539 f.AddDomCheckerTests() |
| 540 if R('dom_checker_br'): |
| 541 f.AddBuildrunnerDomCheckerTests() |
| 542 |
| 537 if self._target_platform == 'win32': | 543 if self._target_platform == 'win32': |
| 538 if R('installer_util_unittests'): | 544 if R('installer_util_unittests'): |
| 539 f.AddGTestTestStep('installer_util_unittests', fp) | 545 f.AddGTestTestStep('installer_util_unittests', fp) |
| 540 if R('installer_util_unittests_br'): | 546 if R('installer_util_unittests_br'): |
| 541 f.AddBuildrunnerGTest('installer_util_unittests', fp) | 547 f.AddBuildrunnerGTest('installer_util_unittests', fp) |
| 542 | 548 |
| 543 if R('installer'): | 549 if R('installer'): |
| 544 f.AddInstallerTests(fp) | 550 f.AddInstallerTests(fp) |
| 545 if R('installer_br'): | 551 if R('installer_br'): |
| 546 f.AddBuildrunnerInstallerTests(fp) | 552 f.AddBuildrunnerInstallerTests(fp) |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 'smoothness.top_25', | 687 'smoothness.top_25', |
| 682 'smoothness.tough_canvas_cases', | 688 'smoothness.tough_canvas_cases', |
| 683 'smoothness.tough_pinch_zoom_cases', | 689 'smoothness.tough_pinch_zoom_cases', |
| 684 'tab_switching.top_10', | 690 'tab_switching.top_10', |
| 685 'thread_times.key_mobile_sites', | 691 'thread_times.key_mobile_sites', |
| 686 ] | 692 ] |
| 687 for test_name in real_world_benchmarks: | 693 for test_name in real_world_benchmarks: |
| 688 Telemetry(test_name) | 694 Telemetry(test_name) |
| 689 | 695 |
| 690 # Other benchmarks: | 696 # Other benchmarks: |
| 697 if R('memory'): |
| 698 f.AddMemoryTests(fp) |
| 691 if R('tab_capture_performance'): | 699 if R('tab_capture_performance'): |
| 692 f.AddTabCapturePerformanceTests(fp) | 700 f.AddTabCapturePerformanceTests(fp) |
| 693 if R('indexeddb_perf'): | 701 if R('indexeddb_perf'): |
| 694 f.AddTelemetryTest('indexeddb_perf', factory_properties=fp) | 702 f.AddTelemetryTest('indexeddb_perf', factory_properties=fp) |
| 695 if R('startup_cold'): | 703 if R('startup_cold'): |
| 696 f.AddTelemetryTest('startup.cold.blank_page', factory_properties=fp) | 704 f.AddTelemetryTest('startup.cold.blank_page', factory_properties=fp) |
| 697 f.AddTelemetryTest('start_with_url.cold.startup_pages', | 705 f.AddTelemetryTest('start_with_url.cold.startup_pages', |
| 698 factory_properties=fp) | 706 factory_properties=fp) |
| 699 if R('startup_warm'): | 707 if R('startup_warm'): |
| 700 f.AddTelemetryTest('startup.warm.blank_page', factory_properties=fp) | 708 f.AddTelemetryTest('startup.warm.blank_page', factory_properties=fp) |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 startup_fp['run_reference_build'] = False | 743 startup_fp['run_reference_build'] = False |
| 736 f.AddTelemetryTest('session_restore.cold.typical_25', | 744 f.AddTelemetryTest('session_restore.cold.typical_25', |
| 737 step_name='session_restore.cold.typical_25', | 745 step_name='session_restore.cold.typical_25', |
| 738 factory_properties=startup_fp) | 746 factory_properties=startup_fp) |
| 739 | 747 |
| 740 | 748 |
| 741 if R('sizes'): | 749 if R('sizes'): |
| 742 f.AddSizesTests(fp) | 750 f.AddSizesTests(fp) |
| 743 if R('sizes_br'): | 751 if R('sizes_br'): |
| 744 f.AddBuildrunnerSizesTests(fp) | 752 f.AddBuildrunnerSizesTests(fp) |
| 753 if R('sync'): |
| 754 f.AddSyncPerfTests(fp) |
| 745 if R('mach_ports'): | 755 if R('mach_ports'): |
| 746 f.AddMachPortsTests(fp) | 756 f.AddMachPortsTests(fp) |
| 747 if R('cc_perftests'): | 757 if R('cc_perftests'): |
| 748 f.AddCCPerfTests(fp) | 758 f.AddCCPerfTests(fp) |
| 749 if R('media_perftests'): | 759 if R('media_perftests'): |
| 750 f.AddMediaPerfTests(fp) | 760 f.AddMediaPerfTests(fp) |
| 751 if R('load_library_perf_tests'): | 761 if R('load_library_perf_tests'): |
| 752 f.AddLoadLibraryPerfTests(fp) | 762 f.AddLoadLibraryPerfTests(fp) |
| 753 | 763 |
| 754 if R('sync_integration'): | 764 if R('sync_integration'): |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1389 mode=None, slave_type='BuilderTester', options=None, | 1399 mode=None, slave_type='BuilderTester', options=None, |
| 1390 compile_timeout=1200, build_url=None, project=None, | 1400 compile_timeout=1200, build_url=None, project=None, |
| 1391 factory_properties=None): | 1401 factory_properties=None): |
| 1392 # Make sure the solution is not already there. | 1402 # Make sure the solution is not already there. |
| 1393 if 'cros_deps' not in [s.name for s in self._solutions]: | 1403 if 'cros_deps' not in [s.name for s in self._solutions]: |
| 1394 self._solutions.append(gclient_factory.GClientSolution( | 1404 self._solutions.append(gclient_factory.GClientSolution( |
| 1395 config.Master.trunk_url + '/src/tools/cros.DEPS', name='cros_deps')) | 1405 config.Master.trunk_url + '/src/tools/cros.DEPS', name='cros_deps')) |
| 1396 return self.ChromiumFactory(target, clobber, tests, mode, slave_type, | 1406 return self.ChromiumFactory(target, clobber, tests, mode, slave_type, |
| 1397 options, compile_timeout, build_url, project, | 1407 options, compile_timeout, build_url, project, |
| 1398 factory_properties) | 1408 factory_properties) |
| OLD | NEW |