| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Set of utilities to add commands to a buildbot factory.""" | 6 """Set of utilities to add commands to a buildbot factory.""" |
| 7 | 7 |
| 8 import os | 8 import os |
| 9 | 9 |
| 10 from buildbot.steps import shell | 10 from buildbot.steps import shell |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 """Returns a command list to call the _debugger_test_tool. | 726 """Returns a command list to call the _debugger_test_tool. |
| 727 """ | 727 """ |
| 728 cmd = [self._python, os.path.join(self._build_dir, | 728 cmd = [self._python, os.path.join(self._build_dir, |
| 729 self._debugger_test_tool), | 729 self._debugger_test_tool), |
| 730 '--build_dir', os.path.join(self._build_dir, self._target)] | 730 '--build_dir', os.path.join(self._build_dir, self._target)] |
| 731 return cmd | 731 return cmd |
| 732 | 732 |
| 733 def AddChromeUnitTests(self): | 733 def AddChromeUnitTests(self): |
| 734 """Adds a step to the factory to run all the unit tests.""" | 734 """Adds a step to the factory to run all the unit tests.""" |
| 735 # When adding a test, update kill_processes.py. | 735 # When adding a test, update kill_processes.py. |
| 736 self.AddBasicGTestTestStep('ipc_tests') |
| 736 if self._target_platform == 'win32': | 737 if self._target_platform == 'win32': |
| 737 self.AddBasicGTestTestStep('ipc_tests') | |
| 738 self.AddBasicGTestTestStep('installer_unittests') | 738 self.AddBasicGTestTestStep('installer_unittests') |
| 739 if self._target == 'Release': | 739 if self._target == 'Release': |
| 740 self.AddBasicGTestTestStep('mini_installer_test') | 740 self.AddBasicGTestTestStep('mini_installer_test') |
| 741 | 741 |
| 742 self.AddBasicGTestTestStep('unit_tests') | 742 self.AddBasicGTestTestStep('unit_tests') |
| 743 | 743 |
| 744 if 'jsc' not in self._identifier and self._target_platform == 'win32': | 744 if 'jsc' not in self._identifier and self._target_platform == 'win32': |
| 745 self.AddDebuggerTestStep() | 745 self.AddDebuggerTestStep() |
| 746 | 746 |
| 747 def AddUITests(self, with_pageheap, run_single_process=True): | 747 def AddUITests(self, with_pageheap, run_single_process=True): |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 | 1000 |
| 1001 def AddStageBuildStep(self): | 1001 def AddStageBuildStep(self): |
| 1002 """Adds a step to stage the build""" | 1002 """Adds a step to stage the build""" |
| 1003 self._factory.addStep(shell.ShellCommand, | 1003 self._factory.addStep(shell.ShellCommand, |
| 1004 description='stage_build', | 1004 description='stage_build', |
| 1005 timeout=1800, | 1005 timeout=1800, |
| 1006 command=[self._python, self._archive_tool, | 1006 command=[self._python, self._archive_tool, |
| 1007 '--target', self._target, | 1007 '--target', self._target, |
| 1008 '--mode', 'official', | 1008 '--mode', 'official', |
| 1009 '--build-dir', self._build_dir]) | 1009 '--build-dir', self._build_dir]) |
| OLD | NEW |