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 os | 9 import os |
10 import re | 10 import re |
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 perf=perf) | 876 perf=perf) |
877 | 877 |
878 if R('pyauto_chromoting_tests'): | 878 if R('pyauto_chromoting_tests'): |
879 P('pyauto_chromoting_tests', suite='CHROMOTING', factory_properties=fp) | 879 P('pyauto_chromoting_tests', suite='CHROMOTING', factory_properties=fp) |
880 if R('pyauto_official_tests'): | 880 if R('pyauto_official_tests'): |
881 P('pyauto_functional_tests', src_base='..', factory_properties=fp) | 881 P('pyauto_functional_tests', src_base='..', factory_properties=fp) |
882 if R('pyauto_perf_tests'): | 882 if R('pyauto_perf_tests'): |
883 P('pyauto_perf_tests', suite='PERFORMANCE', src_base='..', | 883 P('pyauto_perf_tests', suite='PERFORMANCE', src_base='..', |
884 factory_properties=fp, perf=True) | 884 factory_properties=fp, perf=True) |
885 | 885 |
886 # TODO(machenbach): Remove as soon as endure has fully migrated to | |
887 # telemetry: | |
888 # Endurance tests. | 886 # Endurance tests. |
889 endure_tests = { | |
890 'control': [ | |
891 'perf_endure.ChromeEndureControlTest.testControlAttachDetachDOMTree', | |
892 'perf_endure.ChromeEndureControlTest.' | |
893 'testControlAttachDetachDOMTreeWebDriver', | |
894 ], | |
895 'docs': [ | |
896 'perf_endure.ChromeEndureDocsTest.testDocsAlternatelyClickLists', | |
897 ], | |
898 'gmail': [ | |
899 'perf_endure.ChromeEndureGmailTest.testGmailComposeDiscard', | |
900 'perf_endure.ChromeEndureGmailTest.' | |
901 'testGmailAlternateThreadlistConversation', | |
902 'perf_endure.ChromeEndureGmailTest.testGmailAlternateTwoLabels', | |
903 'perf_endure.ChromeEndureGmailTest.testGmailExpandCollapseConversation', | |
904 ], | |
905 'indexeddb': [ | |
906 'perf_endure.IndexedDBOfflineTest.testOfflineOnline', | |
907 ], | |
908 'plus': [ | |
909 'perf_endure.ChromeEndurePlusTest.testPlusAlternatelyClickStreams', | |
910 ], | |
911 } | |
912 # Live sites. | |
913 if R('endure_control_tests'): | |
914 f.AddChromeEndureTest('control', endure_tests['control'], fp) | |
915 if R('endure_docs_tests'): | |
916 f.AddChromeEndureTest('docs', endure_tests['docs'], fp) | |
917 if R('endure_gmail_tests'): | |
918 f.AddChromeEndureTest('gmail', endure_tests['gmail'], fp) | |
919 if R('endure_indexeddb_tests'): | |
920 f.AddChromeEndureTest('indexeddb', endure_tests['indexeddb'], | |
921 fp) | |
922 if R('endure_plus_tests'): | |
923 f.AddChromeEndureTest('plus', endure_tests['plus'], fp) | |
924 # Web Page Replay. | |
925 if R('endure_docs_wpr_tests'): | |
926 f.AddChromeEndureTest('docs_wpr', endure_tests['docs'], fp, | |
927 wpr=True) | |
928 if R('endure_gmail_wpr_tests'): | |
929 f.AddChromeEndureTest('gmail_wpr', endure_tests['gmail'], fp, | |
930 wpr=True) | |
931 if R('endure_plus_wpr_tests'): | |
932 f.AddChromeEndureTest('plus_wpr', endure_tests['plus'], fp, | |
933 wpr=True) | |
934 | |
935 # Endure with telemetry. | |
936 if R('endure_calendar_tests'): | 887 if R('endure_calendar_tests'): |
937 f.AddTelemetryTest('endure', 'calendar_forward_backward.json', | 888 f.AddTelemetryTest('endure', 'calendar_forward_backward.json', |
938 step_name='endure_calendar', factory_properties=fp, | 889 step_name='calendar', factory_properties=fp, |
939 timeout=6000) | 890 timeout=6000) |
940 if R('endure_gmail_expand_collapse_tests'): | 891 if R('endure_gmail_expand_collapse_tests'): |
941 f.AddTelemetryTest('endure', 'gmail_expand_collapse_conversation.json', | 892 f.AddTelemetryTest('endure', 'gmail_expand_collapse_conversation.json', |
942 step_name='endure_gmail_expand_collapse', | 893 step_name='gmail_exp_col', |
943 factory_properties=fp, timeout=6000) | 894 factory_properties=fp, timeout=6000) |
944 if R('endure_gmail_alt_label_tests'): | 895 if R('endure_gmail_alt_label_tests'): |
945 f.AddTelemetryTest('endure', 'gmail_alt_two_labels.json', | 896 f.AddTelemetryTest('endure', 'gmail_alt_two_labels.json', |
946 step_name='endure_gmail_alt_labels', | 897 step_name='gmail_labels', |
947 factory_properties=fp, timeout=6000) | 898 factory_properties=fp, timeout=6000) |
948 if R('endure_gmail_alt_threadlist_tests'): | 899 if R('endure_gmail_alt_threadlist_tests'): |
949 f.AddTelemetryTest('endure', 'gmail_alt_threadlist_conversation.json', | 900 f.AddTelemetryTest('endure', 'gmail_alt_threadlist_conversation.json', |
950 step_name='endure_gmail_alt_threadlist', | 901 step_name='gmail_threadlist', |
951 factory_properties=fp, timeout=6000) | 902 factory_properties=fp, timeout=6000) |
952 if R('endure_plus_tests'): | 903 if R('endure_plus_tests'): |
953 f.AddTelemetryTest('endure', 'plus_alt_posts_photos.json', | 904 f.AddTelemetryTest('endure', 'plus_alt_posts_photos.json', |
954 step_name='endure_plus', factory_properties=fp, | 905 step_name='plus', factory_properties=fp, |
955 timeout=6000) | 906 timeout=6000) |
956 | 907 |
957 # HTML5 media tag performance/functional test using PyAuto. | 908 # HTML5 media tag performance/functional test using PyAuto. |
958 if R('avperf'): | 909 if R('avperf'): |
959 # Performance test should be run on virtual X buffer. | 910 # Performance test should be run on virtual X buffer. |
960 fp['use_xvfb_on_linux'] = True | 911 fp['use_xvfb_on_linux'] = True |
961 f.AddMediaTests(factory_properties=fp, test_groups=self.MEDIA_TEST_GROUPS) | 912 f.AddMediaTests(factory_properties=fp, test_groups=self.MEDIA_TEST_GROUPS) |
962 if R('chromedriver_tests'): | 913 if R('chromedriver_tests'): |
963 f.AddChromeDriverTest() | 914 f.AddChromeDriverTest() |
964 if R('webdriver_tests'): | 915 if R('webdriver_tests'): |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1515 build_dir=web_build_dir) | 1466 build_dir=web_build_dir) |
1516 chromium_cmd_obj.AddChromebotServer(factory_properties) | 1467 chromium_cmd_obj.AddChromebotServer(factory_properties) |
1517 chromium_cmd_obj.AddReliabilityTests(client_os) | 1468 chromium_cmd_obj.AddReliabilityTests(client_os) |
1518 elif slave_type == 'ChromebotClient': | 1469 elif slave_type == 'ChromebotClient': |
1519 chromium_cmd_obj.AddGetBuildForChromebot(client_os, | 1470 chromium_cmd_obj.AddGetBuildForChromebot(client_os, |
1520 extract=True, | 1471 extract=True, |
1521 build_url=build_url) | 1472 build_url=build_url) |
1522 chromium_cmd_obj.AddChromebotClient(factory_properties) | 1473 chromium_cmd_obj.AddChromebotClient(factory_properties) |
1523 | 1474 |
1524 return factory | 1475 return factory |
OLD | NEW |