| 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 """Utility class to build the v8 master BuildFactory's. | 5 """Utility class to build the v8 master BuildFactory's. |
| 6 | 6 |
| 7 Based on gclient_factory.py and adds v8-specific steps.""" | 7 Based on gclient_factory.py and adds v8-specific steps.""" |
| 8 | 8 |
| 9 from master.factory import v8_commands | 9 from master.factory import v8_commands |
| 10 from master.factory import gclient_factory | 10 from master.factory import gclient_factory |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 if R('mjsunit'): | 66 if R('mjsunit'): |
| 67 f.AddV8Test('mjsunit', env=factory_properties.get('test_env', {}), | 67 f.AddV8Test('mjsunit', env=factory_properties.get('test_env', {}), |
| 68 options=factory_properties.get('test_options', [])) | 68 options=factory_properties.get('test_options', [])) |
| 69 if R('fuzz'): f.AddFuzzer() | 69 if R('fuzz'): f.AddFuzzer() |
| 70 if R('deopt'): | 70 if R('deopt'): |
| 71 f.AddDeoptFuzzer(env=factory_properties.get('test_env', {}), | 71 f.AddDeoptFuzzer(env=factory_properties.get('test_env', {}), |
| 72 options=factory_properties.get('test_options', [])) | 72 options=factory_properties.get('test_options', [])) |
| 73 if R('webkit'): f.AddV8Webkit() | 73 if R('webkit'): f.AddV8Webkit() |
| 74 if R('test262'): f.AddV8Test262() | 74 if R('test262'): f.AddV8Test262() |
| 75 if R('mozilla'): f.AddV8Mozilla() | 75 if R('mozilla'): f.AddV8Mozilla() |
| 76 if R('intl'): f.AddV8Intl() | |
| 77 if R('gcmole'): f.AddV8GCMole() | 76 if R('gcmole'): f.AddV8GCMole() |
| 78 if R('simpleleak'): f.AddSimpleLeakTest() | 77 if R('simpleleak'): f.AddSimpleLeakTest() |
| 79 | 78 |
| 80 def V8Factory(self, target='Release', clobber=False, tests=None, mode=None, | 79 def V8Factory(self, target='Release', clobber=False, tests=None, mode=None, |
| 81 slave_type='BuilderTester', options=None, compile_timeout=1200, | 80 slave_type='BuilderTester', options=None, compile_timeout=1200, |
| 82 build_url=None, project=None, factory_properties=None, | 81 build_url=None, project=None, factory_properties=None, |
| 83 target_arch=None, shard_count=1, | 82 target_arch=None, shard_count=1, |
| 84 shard_run=1, shell_flags=None, isolates=False, | 83 shard_run=1, shell_flags=None, isolates=False, |
| 85 command_prefix=None): | 84 command_prefix=None): |
| 86 tests = tests or [] | 85 tests = tests or [] |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 v8_cmd_obj.AddArchiveBuild( | 133 v8_cmd_obj.AddArchiveBuild( |
| 135 extra_archive_paths=factory_properties.get('extra_archive_paths')) | 134 extra_archive_paths=factory_properties.get('extra_archive_paths')) |
| 136 | 135 |
| 137 # This is for the arm tester board (we don't have other pure tester slaves). | 136 # This is for the arm tester board (we don't have other pure tester slaves). |
| 138 if (slave_type == 'Tester'): | 137 if (slave_type == 'Tester'): |
| 139 v8_cmd_obj.AddMoveExtracted() | 138 v8_cmd_obj.AddMoveExtracted() |
| 140 | 139 |
| 141 # Add all the tests. | 140 # Add all the tests. |
| 142 self._AddTests(v8_cmd_obj, tests, mode, factory_properties) | 141 self._AddTests(v8_cmd_obj, tests, mode, factory_properties) |
| 143 return factory | 142 return factory |
| OLD | NEW |