Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 from slave import recipe_api | 5 from slave import recipe_api |
| 6 from slave import recipe_util | 6 from slave import recipe_util |
| 7 | 7 |
| 8 | 8 |
| 9 class TestLauncherFilterFileInputPlaceholder(recipe_util.Placeholder): | 9 class TestLauncherFilterFileInputPlaceholder(recipe_util.Placeholder): |
| 10 def __init__(self, api, tests): | 10 def __init__(self, api, tests): |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 223 def run_telemetry_perf_unittests(self): | 223 def run_telemetry_perf_unittests(self): |
| 224 return self.runtest( | 224 return self.runtest( |
| 225 self.m.path['checkout'].join('tools', 'perf', 'run_tests'), | 225 self.m.path['checkout'].join('tools', 'perf', 'run_tests'), |
| 226 args=['--browser=%s' % self.c.BUILD_CONFIG.lower()], | 226 args=['--browser=%s' % self.c.BUILD_CONFIG.lower()], |
| 227 annotate='gtest', | 227 annotate='gtest', |
| 228 name='telemetry_perf_unittests', | 228 name='telemetry_perf_unittests', |
| 229 test_type='telemetry_perf_unittests', | 229 test_type='telemetry_perf_unittests', |
| 230 python_mode=True, | 230 python_mode=True, |
| 231 xvfb=True) | 231 xvfb=True) |
| 232 | 232 |
| 233 def runhooks(self, **kwargs): | 233 def runhooks(self, run_gyp=True, **kwargs): |
| 234 """Run the build-configuration hooks for chromium.""" | 234 """Run the build-configuration hooks for chromium.""" |
| 235 env = kwargs.get('env', {}) | 235 env = kwargs.get('env', {}) |
| 236 env.update(self.c.gyp_env.as_jsonish()) | 236 if run_gyp: |
| 237 env.update(self.c.gyp_env.as_jsonish()) | |
| 238 else: | |
| 239 env['GYP_CHROMIUM_NO_ACTION'] = 1 | |
| 237 kwargs['env'] = env | 240 kwargs['env'] = env |
| 238 return self.m.gclient.runhooks(**kwargs) | 241 return self.m.gclient.runhooks(**kwargs) |
| 239 | 242 |
| 243 def compile_with_ninja(self, name, output_dir, **kwargs): | |
| 244 ninja_path = self.m.path['depot_tools'].join('ninja', | |
| 245 platform_ext={'win': '.exe'}) | |
| 246 return self.m.step(name=name, cmd=[ninja_path, '-C', output_dir], **kwargs) | |
|
iannucci
2014/03/28 22:40:42
Really not convinced that output_dir should be spe
Dirk Pranke
2014/03/28 23:52:06
I don't think that really works because we actuall
| |
| 247 | |
| 248 def run_gn(self, output_arg, **kwargs): | |
| 249 config = self.c.BUILD_CONFIG | |
| 250 gn_wrapper_script_path = self.m.path['depot_tools'].join('gn.py') | |
| 251 gn_build_config_specific_args = { | |
| 252 'Debug': ['--args=is_debug=true'], | |
| 253 'Release': ['--args=is_debug=false'], | |
| 254 } | |
| 255 gn_args = ['--root=' + str(self.m.path['checkout']), 'gen', output_arg] | |
|
iannucci
2014/03/28 22:40:42
is gn using a non-standard cli parser, which is wh
Dirk Pranke
2014/03/28 23:52:06
Brett believes that ['--root', path] is actually
| |
| 256 gn_args += gn_build_config_specific_args[config] | |
| 257 return self.m.python('gn', gn_wrapper_script_path, args=gn_args, **kwargs) | |
| 258 | |
| 240 def taskkill(self): | 259 def taskkill(self): |
| 241 return self.m.python( | 260 return self.m.python( |
| 242 'taskkill', | 261 'taskkill', |
| 243 self.m.path['build'].join('scripts', 'slave', 'kill_processes.py')) | 262 self.m.path['build'].join('scripts', 'slave', 'kill_processes.py')) |
| 244 | 263 |
| 245 def cleanup_temp(self): | 264 def cleanup_temp(self): |
| 246 return self.m.python( | 265 return self.m.python( |
| 247 'cleanup_temp', | 266 'cleanup_temp', |
| 248 self.m.path['build'].join('scripts', 'slave', 'cleanup_temp.py')) | 267 self.m.path['build'].join('scripts', 'slave', 'cleanup_temp.py')) |
| 249 | 268 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 299 '--json', self.m.json.output()], | 318 '--json', self.m.json.output()], |
| 300 step_test_data=lambda: self.m.json.test_api.output([]), | 319 step_test_data=lambda: self.m.json.test_api.output([]), |
| 301 **kwargs) | 320 **kwargs) |
| 302 | 321 |
| 303 def deps2submodules(self, **kwargs): | 322 def deps2submodules(self, **kwargs): |
| 304 return self.m.python( | 323 return self.m.python( |
| 305 'deps2submodules', | 324 'deps2submodules', |
| 306 self.m.path['checkout'].join('tools', 'deps2git', 'deps2submodules.py'), | 325 self.m.path['checkout'].join('tools', 'deps2git', 'deps2submodules.py'), |
| 307 args=['--gitless', self.m.path['checkout'].join('.DEPS.git')], | 326 args=['--gitless', self.m.path['checkout'].join('.DEPS.git')], |
| 308 **kwargs) | 327 **kwargs) |
| OLD | NEW |