| 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 self.AddBasicGTestTestStep('installer_util_unittests', factory_properties) | 456 self.AddBasicGTestTestStep('installer_util_unittests', factory_properties) |
| 457 if (self._target == 'Release' and | 457 if (self._target == 'Release' and |
| 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('sql_unittests', factory_properties) |
| 467 self.AddBasicGTestTestStep('gfx_unittests', factory_properties) | 467 self.AddBasicGTestTestStep('gfx_unittests', factory_properties) |
| 468 if self._target_platform == 'win32': | 468 if self._target_platform == 'win32': |
| 469 self.AddBasicGTestTestStep('views_unittests', factory_properties) | 469 self.AddBasicGTestTestStep('views_unittests', factory_properties) |
| 470 | 470 |
| 471 def AddSyncIntegrationTests(self, factory_properties): | 471 def AddSyncIntegrationTests(self, factory_properties): |
| 472 options = ['--ui-test-action-max-timeout=120000'] | 472 options = ['--ui-test-action-max-timeout=120000'] |
| 473 | 473 |
| 474 self.AddBasicGTestTestStep('sync_integration_tests', factory_properties, '', | 474 self.AddBasicGTestTestStep('sync_integration_tests', factory_properties, '', |
| 475 options) | 475 options) |
| 476 | 476 |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1112 test['class'] = self.GetPerfStepClass(factory_properties, 'avperf', | 1112 test['class'] = self.GetPerfStepClass(factory_properties, 'avperf', |
| 1113 process_log.GraphingLogProcessor) | 1113 process_log.GraphingLogProcessor) |
| 1114 test['step_name'] = test['perf_name'] | 1114 test['step_name'] = test['perf_name'] |
| 1115 self.AddTestStep(test['class'], test['step_name'], pyauto_functional_cmd, | 1115 self.AddTestStep(test['class'], test['step_name'], pyauto_functional_cmd, |
| 1116 workdir=workdir, timeout=timeout) | 1116 workdir=workdir, timeout=timeout) |
| 1117 | 1117 |
| 1118 def _GetArchiveUrl(archive_type, builder_name='%(build_name)s'): | 1118 def _GetArchiveUrl(archive_type, builder_name='%(build_name)s'): |
| 1119 # The default builder name is dynamically filled in by | 1119 # The default builder name is dynamically filled in by |
| 1120 # ArchiveCommand.createSummary. | 1120 # ArchiveCommand.createSummary. |
| 1121 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) | 1121 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) |
| OLD | NEW |