| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 """Set of utilities to add commands to a buildbot factory. | 5 """Set of utilities to add commands to a buildbot factory. |
| 6 | 6 |
| 7 This is based on commands.py and adds chromium-specific commands.""" | 7 This is based on commands.py and adds chromium-specific commands.""" |
| 8 | 8 |
| 9 import logging | 9 import logging |
| 10 import os | 10 import os |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 | 314 |
| 315 # Warm tests | 315 # Warm tests |
| 316 c = self.GetPerfStepClass(factory_properties, 'new-tab-ui-warm', | 316 c = self.GetPerfStepClass(factory_properties, 'new-tab-ui-warm', |
| 317 process_log.GraphingLogProcessor) | 317 process_log.GraphingLogProcessor) |
| 318 | 318 |
| 319 options = ['--gtest_filter=NewTabUIStartupTest.*Warm'] | 319 options = ['--gtest_filter=NewTabUIStartupTest.*Warm'] |
| 320 cmd = self.GetTestCommand('performance_ui_tests', options) | 320 cmd = self.GetTestCommand('performance_ui_tests', options) |
| 321 self.AddTestStep(c, 'new_tab_ui_warm_test', cmd, | 321 self.AddTestStep(c, 'new_tab_ui_warm_test', cmd, |
| 322 do_step_if=self.TestStepFilter) | 322 do_step_if=self.TestStepFilter) |
| 323 | 323 |
| 324 def AddSyncPerfTests(self, factory_properties=None): |
| 325 factory_properties = factory_properties or {} |
| 326 c = self.GetPerfStepClass(factory_properties, 'sync', |
| 327 process_log.GraphingLogProcessor) |
| 328 |
| 329 options = ['--gtest_filter=*SyncPerfTest.*', |
| 330 '--ui-test-action-max-timeout=120000',] |
| 331 cmd = self.GetTestCommand('sync_performance_tests', options) |
| 332 self.AddTestStep(c, 'sync', cmd, |
| 333 do_step_if=self.TestStepFilter) |
| 334 |
| 324 def AddTabSwitchingTests(self, factory_properties=None): | 335 def AddTabSwitchingTests(self, factory_properties=None): |
| 325 factory_properties = factory_properties or {} | 336 factory_properties = factory_properties or {} |
| 326 c = self.GetPerfStepClass(factory_properties, 'tab-switching', | 337 c = self.GetPerfStepClass(factory_properties, 'tab-switching', |
| 327 process_log.GraphingLogProcessor) | 338 process_log.GraphingLogProcessor) |
| 328 | 339 |
| 329 options = ['--gtest_filter=TabSwitchingUITest.*', '-enable-logging', | 340 options = ['--gtest_filter=TabSwitchingUITest.*', '-enable-logging', |
| 330 '-dump-histograms-on-exit', '-log-level=0'] | 341 '-dump-histograms-on-exit', '-log-level=0'] |
| 331 | 342 |
| 332 cmd = self.GetTestCommand('performance_ui_tests', options) | 343 cmd = self.GetTestCommand('performance_ui_tests', options) |
| 333 self.AddTestStep(c, 'tab_switching_test', cmd, | 344 self.AddTestStep(c, 'tab_switching_test', cmd, |
| (...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1139 # ArchiveCommand.createSummary. | 1150 # ArchiveCommand.createSummary. |
| 1140 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) | 1151 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) |
| 1141 | 1152 |
| 1142 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): | 1153 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): |
| 1143 if not factory_properties or 'gs_bucket' not in factory_properties: | 1154 if not factory_properties or 'gs_bucket' not in factory_properties: |
| 1144 return (_GetArchiveUrl('snapshots', builder_name), None) | 1155 return (_GetArchiveUrl('snapshots', builder_name), None) |
| 1145 gs_bucket = factory_properties['gs_bucket'] | 1156 gs_bucket = factory_properties['gs_bucket'] |
| 1146 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', | 1157 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', |
| 1147 gs_bucket) | 1158 gs_bucket) |
| 1148 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') | 1159 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') |
| OLD | NEW |