| 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 """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 from buildbot.steps import shell | 9 from buildbot.steps import shell |
| 10 | 10 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 timeout=3600, workdir='build/v8/') | 146 timeout=3600, workdir='build/v8/') |
| 147 | 147 |
| 148 def AddV8Mozilla(self, properties=None): | 148 def AddV8Mozilla(self, properties=None): |
| 149 if self._target_platform == 'win32': | 149 if self._target_platform == 'win32': |
| 150 self.AddTaskkillStep() | 150 self.AddTaskkillStep() |
| 151 cmd = self.GetV8TestingCommand() | 151 cmd = self.GetV8TestingCommand() |
| 152 cmd += ['--testname', 'mozilla'] | 152 cmd += ['--testname', 'mozilla'] |
| 153 self.AddTestStep(shell.ShellCommand, 'Mozilla', cmd, | 153 self.AddTestStep(shell.ShellCommand, 'Mozilla', cmd, |
| 154 timeout=3600, workdir='build/v8/') | 154 timeout=3600, workdir='build/v8/') |
| 155 | 155 |
| 156 def AddV8Intl(self, properties=None): | |
| 157 if self._target_platform == 'win32': | |
| 158 self.AddTaskkillStep() | |
| 159 cmd = self.GetV8TestingCommand() | |
| 160 cmd += ['--testname', 'intl'] | |
| 161 self.AddTestStep(shell.ShellCommand, 'Intl', cmd, | |
| 162 timeout=3600, workdir='build/v8/') | |
| 163 | |
| 164 def AddPresubmitTest(self, properties=None): | 156 def AddPresubmitTest(self, properties=None): |
| 165 cmd = [self._python, self._v8testing_tool, | 157 cmd = [self._python, self._v8testing_tool, |
| 166 '--testname', 'presubmit'] | 158 '--testname', 'presubmit'] |
| 167 self.AddTestStep(shell.ShellCommand, 'Presubmit', cmd, | 159 self.AddTestStep(shell.ShellCommand, 'Presubmit', cmd, |
| 168 workdir='build/v8/') | 160 workdir='build/v8/') |
| 169 | 161 |
| 170 def AddFuzzer(self, properties=None): | 162 def AddFuzzer(self, properties=None): |
| 171 binary = 'out/' + self._target + '/d8' | 163 binary = 'out/' + self._target + '/d8' |
| 172 cmd = ['bash', './tools/fuzz-harness.sh', binary] | 164 cmd = ['bash', './tools/fuzz-harness.sh', binary] |
| 173 self.AddTestStep(shell.ShellCommand, 'Fuzz', cmd, | 165 self.AddTestStep(shell.ShellCommand, 'Fuzz', cmd, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 workdir='build/v8') | 220 workdir='build/v8') |
| 229 | 221 |
| 230 def AddMoveExtracted(self): | 222 def AddMoveExtracted(self): |
| 231 """Adds a step to download and extract a previously archived build.""" | 223 """Adds a step to download and extract a previously archived build.""" |
| 232 cmd = ('cp -R sconsbuild/release/* v8/.') | 224 cmd = ('cp -R sconsbuild/release/* v8/.') |
| 233 self._factory.addStep(shell.ShellCommand, | 225 self._factory.addStep(shell.ShellCommand, |
| 234 description='Move extracted to bleeding', | 226 description='Move extracted to bleeding', |
| 235 timeout=600, | 227 timeout=600, |
| 236 workdir='build', | 228 workdir='build', |
| 237 command=cmd) | 229 command=cmd) |
| OLD | NEW |