OLD | NEW |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client 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 # Enable 'with' statements in Python 2.5 | 6 # Enable 'with' statements in Python 2.5 |
7 from __future__ import with_statement | 7 from __future__ import with_statement |
8 | 8 |
9 import os.path | 9 import os.path |
10 import re | 10 import re |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
329 SCons(context, mode=context['default_scons_mode'] + ['nacl_irt_test'], | 329 SCons(context, mode=context['default_scons_mode'] + ['nacl_irt_test'], |
330 args=['small_tests_irt']) | 330 args=['small_tests_irt']) |
331 with Step('medium_tests under IRT', status, halt_on_fail=False): | 331 with Step('medium_tests under IRT', status, halt_on_fail=False): |
332 SCons(context, mode=context['default_scons_mode'] + ['nacl_irt_test'], | 332 SCons(context, mode=context['default_scons_mode'] + ['nacl_irt_test'], |
333 args=['medium_tests_irt']) | 333 args=['medium_tests_irt']) |
334 | 334 |
335 # TODO(eugenis): reenable this on clang/opt once the LLVM issue is fixed | 335 # TODO(eugenis): reenable this on clang/opt once the LLVM issue is fixed |
336 # http://code.google.com/p/nativeclient/issues/detail?id=2473 | 336 # http://code.google.com/p/nativeclient/issues/detail?id=2473 |
337 bug2473 = (context['clang'] or context['asan']) and context['mode'] == 'opt' | 337 bug2473 = (context['clang'] or context['asan']) and context['mode'] == 'opt' |
338 if context.Mac() and context['arch'] != 'arm' and not bug2473: | 338 if context.Mac() and context['arch'] != 'arm' and not bug2473: |
339 # We don't run all tests on x86-64 Mac yet, because not all pass | 339 # We don't run all tests on x86-64 Mac yet because it would slow |
340 # yet, and because it would slow down the bots too much. We just | 340 # down the bots too much. We just run a small set of tests that |
341 # run a small set of tests that have previously been fixed to | 341 # have previously been fixed to pass, in order to prevent |
342 # pass, in order to prevent regressions. | 342 # regressions. |
343 # TODO(mseaborn): Remove this when we have bots dedicated to | 343 # TODO(mseaborn): Remove this when we have bots dedicated to |
344 # testing x86-64 Mac. | 344 # testing x86-64 Mac. |
345 with Step('minimal x86-64 test', status, halt_on_fail=False): | 345 with Step('minimal x86-64 test', status, halt_on_fail=False): |
346 SCons(context, parallel=True, platform='x86-64', | 346 SCons(context, parallel=True, platform='x86-64', |
347 args=['run_hello_world_test', | 347 args=['exception_tests', |
Mark Mentovai
2013/02/15 22:30:30
I could add more tests here since they do all pass
| |
348 'run_hello_world_test', | |
348 'run_execute_data_test', | 349 'run_execute_data_test', |
349 'run_nacl_signal_test', | 350 'run_nacl_signal_test', |
350 'run_signal_frame_test', | 351 'run_signal_frame_test', |
351 'run_signal_handler_test', | 352 'run_signal_handler_test', |
352 'run_trusted_mmap_test']) | 353 'run_trusted_mmap_test']) |
353 | 354 |
354 ### END tests ### | 355 ### END tests ### |
355 | 356 |
356 if not context['no_gyp']: | 357 if not context['no_gyp']: |
357 # Build with ragel-based validator using GYP. | 358 # Build with ragel-based validator using GYP. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
406 start_time = time.time() | 407 start_time = time.time() |
407 try: | 408 try: |
408 Main() | 409 Main() |
409 finally: | 410 finally: |
410 time_taken = time.time() - start_time | 411 time_taken = time.time() - start_time |
411 print 'RESULT BuildbotTime: total= %.3f minutes' % (time_taken / 60) | 412 print 'RESULT BuildbotTime: total= %.3f minutes' % (time_taken / 60) |
412 | 413 |
413 | 414 |
414 if __name__ == '__main__': | 415 if __name__ == '__main__': |
415 TimedMain() | 416 TimedMain() |
OLD | NEW |