| 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 generate a Native-Client-specific BuildFactory. | 6 """Utility class to generate a Native-Client-specific BuildFactory. |
| 7 | 7 |
| 8 Based on gclient_factory.py.""" | 8 Based on gclient_factory.py.""" |
| 9 | 9 |
| 10 import os | 10 import os |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 184 |
| 185 for test_size in ['small', 'medium', 'large', 'smoke']: | 185 for test_size in ['small', 'medium', 'large', 'smoke']: |
| 186 if R('nacl_%s_tests' % test_size): | 186 if R('nacl_%s_tests' % test_size): |
| 187 if test_size == 'large': | 187 if test_size == 'large': |
| 188 timeout = 600 | 188 timeout = 600 |
| 189 else: | 189 else: |
| 190 timeout = 300 | 190 timeout = 300 |
| 191 f.AddSizedTests(test_size, options=options, timeout=timeout) | 191 f.AddSizedTests(test_size, options=options, timeout=timeout) |
| 192 | 192 |
| 193 if R('nacl_valgrind'): | 193 if R('nacl_valgrind'): |
| 194 f.AddValgrind(options=options) | 194 f.AddMemcheck(options=options) |
| 195 f.AddThreadSanitizer(options=options) |
| 195 | 196 |
| 196 if R('nacl_arm_hw'): | 197 if R('nacl_arm_hw'): |
| 197 for test_size in ['small']: | 198 for test_size in ['small']: |
| 198 f.AddSizedTests(test_size, | 199 f.AddSizedTests(test_size, |
| 199 full_name='%s_tests_arm_hw_only' % test_size, | 200 full_name='%s_tests_arm_hw_only' % test_size, |
| 200 options=options) | 201 options=options) |
| 201 | 202 |
| 202 if R('nacl_utman_arm_tests'): | 203 if R('nacl_utman_arm_tests'): |
| 203 f.AddUtmanTests('arm', options=options) | 204 f.AddUtmanTests('arm', options=options) |
| 204 if R('nacl_utman_x86_32_tests'): | 205 if R('nacl_utman_x86_32_tests'): |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 target, | 304 target, |
| 304 self._build_dir, | 305 self._build_dir, |
| 305 self._target_platform, | 306 self._target_platform, |
| 306 test_target=test_target) | 307 test_target=test_target) |
| 307 | 308 |
| 308 nacl_cmd_obj.AddModularBuildStep( | 309 nacl_cmd_obj.AddModularBuildStep( |
| 309 mode=mode, clobber=clobber, options=options, | 310 mode=mode, clobber=clobber, options=options, |
| 310 timeout=compile_timeout) | 311 timeout=compile_timeout) |
| 311 | 312 |
| 312 return factory | 313 return factory |
| OLD | NEW |