OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2009 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 """Utility class to build the chromium master BuildFactory's. | 6 """Utility class to build the chromium master BuildFactory's. |
7 | 7 |
8 Based on gclient_factory.py and adds chromium-specific steps.""" | 8 Based on gclient_factory.py and adds chromium-specific steps.""" |
9 | 9 |
10 import os | 10 import os |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 prefix = 'wine_valgrind_' | 253 prefix = 'wine_valgrind_' |
254 if test.startswith(prefix): | 254 if test.startswith(prefix): |
255 test_name = test[len(prefix):] | 255 test_name = test[len(prefix):] |
256 f.AddWineValgrindTest(test_name) | 256 f.AddWineValgrindTest(test_name) |
257 | 257 |
258 | 258 |
259 # PyAuto functional tests. | 259 # PyAuto functional tests. |
260 if R('pyauto_functional_tests'): | 260 if R('pyauto_functional_tests'): |
261 f.AddPyAutoFunctionalTest('pyauto_functional_tests') | 261 f.AddPyAutoFunctionalTest('pyauto_functional_tests') |
262 elif R('pyauto_official_tests'): | 262 elif R('pyauto_official_tests'): |
263 # Mapping from self._target_platform to a chrome-*.zip | |
264 platmap = {'win32': 'win', | |
265 'darwin': 'mac', | |
266 'linux2': 'linux' } | |
267 zip_plat = platmap[self._target_platform] | |
268 workdir = os.path.join(f._working_dir, 'chrome-' + zip_plat) | |
269 f.AddPyAutoFunctionalTest('pyauto_functional_tests', | 263 f.AddPyAutoFunctionalTest('pyauto_functional_tests', |
270 functional_base='..', | 264 workdir=f._working_dir) |
271 workdir=workdir) | |
272 | 265 |
273 # When adding a test that uses a new executable, update kill_processes.py. | 266 # When adding a test that uses a new executable, update kill_processes.py. |
274 | 267 |
275 # Coverage tests. Add coverage processing absoluely last, after | 268 # Coverage tests. Add coverage processing absoluely last, after |
276 # all tests have run. Tests which run after coverage processing | 269 # all tests have run. Tests which run after coverage processing |
277 # don't get counted. | 270 # don't get counted. |
278 if R('run_coverage_bundles'): | 271 if R('run_coverage_bundles'): |
279 f.AddRunCoverageBundles(fp) | 272 f.AddRunCoverageBundles(fp) |
280 if R('process_coverage'): | 273 if R('process_coverage'): |
281 f.AddProcessCoverage(fp) | 274 f.AddProcessCoverage(fp) |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 factory = self.BuildFactory(identifier, target, clobber, tests, mode, | 491 factory = self.BuildFactory(identifier, target, clobber, tests, mode, |
499 slave_type, options, compile_timeout, build_url, | 492 slave_type, options, compile_timeout, build_url, |
500 project, factory_properties) | 493 project, factory_properties) |
501 chromium_cmd_obj = chromium_commands.ChromiumCommands(factory, identifier, | 494 chromium_cmd_obj = chromium_commands.ChromiumCommands(factory, identifier, |
502 target, | 495 target, |
503 self._build_dir, | 496 self._build_dir, |
504 self._target_platform) | 497 self._target_platform) |
505 chromium_cmd_obj.AddDownloadAndExtractOfficialBuild(identifier) | 498 chromium_cmd_obj.AddDownloadAndExtractOfficialBuild(identifier) |
506 self._AddTests(chromium_cmd_obj, tests, mode, factory_properties) | 499 self._AddTests(chromium_cmd_obj, tests, mode, factory_properties) |
507 return factory | 500 return factory |
OLD | NEW |