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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 not factory_properties.get('disable_mini_installer_test')): | 458 not factory_properties.get('disable_mini_installer_test')): |
459 self.AddBasicGTestTestStep('mini_installer_test', factory_properties, | 459 self.AddBasicGTestTestStep('mini_installer_test', factory_properties, |
460 arg_list=['-clean']) | 460 arg_list=['-clean']) |
461 | 461 |
462 def AddChromeUnitTests(self, factory_properties): | 462 def AddChromeUnitTests(self, factory_properties): |
463 self.AddBasicGTestTestStep('ipc_tests', factory_properties) | 463 self.AddBasicGTestTestStep('ipc_tests', factory_properties) |
464 self.AddBasicGTestTestStep('sync_unit_tests', factory_properties) | 464 self.AddBasicGTestTestStep('sync_unit_tests', factory_properties) |
465 self.AddBasicGTestTestStep('unit_tests', factory_properties) | 465 self.AddBasicGTestTestStep('unit_tests', factory_properties) |
466 self.AddBasicGTestTestStep('app_unittests', factory_properties) | 466 self.AddBasicGTestTestStep('app_unittests', factory_properties) |
467 self.AddBasicGTestTestStep('gfx_unittests', factory_properties) | 467 self.AddBasicGTestTestStep('gfx_unittests', factory_properties) |
| 468 self.AddBasicGTestTestStep('ui_unittests', factory_properties) |
468 if self._target_platform == 'win32': | 469 if self._target_platform == 'win32': |
469 self.AddBasicGTestTestStep('views_unittests', factory_properties) | 470 self.AddBasicGTestTestStep('views_unittests', factory_properties) |
470 | 471 |
471 def AddSyncIntegrationTests(self, factory_properties): | 472 def AddSyncIntegrationTests(self, factory_properties): |
472 options = ['--ui-test-action-max-timeout=120000'] | 473 options = ['--ui-test-action-max-timeout=120000'] |
473 | 474 |
474 self.AddBasicGTestTestStep('sync_integration_tests', factory_properties, '', | 475 self.AddBasicGTestTestStep('sync_integration_tests', factory_properties, '', |
475 options) | 476 options) |
476 | 477 |
477 def AddBrowserTests(self, factory_properties=None): | 478 def AddBrowserTests(self, factory_properties=None): |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1112 test['class'] = self.GetPerfStepClass(factory_properties, 'avperf', | 1113 test['class'] = self.GetPerfStepClass(factory_properties, 'avperf', |
1113 process_log.GraphingLogProcessor) | 1114 process_log.GraphingLogProcessor) |
1114 test['step_name'] = test['perf_name'] | 1115 test['step_name'] = test['perf_name'] |
1115 self.AddTestStep(test['class'], test['step_name'], pyauto_functional_cmd, | 1116 self.AddTestStep(test['class'], test['step_name'], pyauto_functional_cmd, |
1116 workdir=workdir, timeout=timeout) | 1117 workdir=workdir, timeout=timeout) |
1117 | 1118 |
1118 def _GetArchiveUrl(archive_type, builder_name='%(build_name)s'): | 1119 def _GetArchiveUrl(archive_type, builder_name='%(build_name)s'): |
1119 # The default builder name is dynamically filled in by | 1120 # The default builder name is dynamically filled in by |
1120 # ArchiveCommand.createSummary. | 1121 # ArchiveCommand.createSummary. |
1121 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) | 1122 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) |
OLD | NEW |