OLD | NEW |
1 #! -*- python -*- | 1 #! -*- 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 import atexit | 6 import atexit |
7 import json | 7 import json |
8 import os | 8 import os |
9 import platform | 9 import platform |
10 import re | 10 import re |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 'run_prctl_test', | 681 'run_prctl_test', |
682 'run_printf_test', | 682 'run_printf_test', |
683 'run_pwrite_test', | 683 'run_pwrite_test', |
684 'run_sigaction_test', | 684 'run_sigaction_test', |
685 'run_signal_sigbus_test', | 685 'run_signal_sigbus_test', |
686 'run_signal_test', | 686 'run_signal_test', |
687 'run_socket_test', | 687 'run_socket_test', |
688 'run_stack_alignment_test', | 688 'run_stack_alignment_test', |
689 'run_syscall_test', | 689 'run_syscall_test', |
690 'run_thread_test', | 690 'run_thread_test', |
| 691 |
| 692 # TODO(uekawa): Enable exception test when implementation is ready. |
| 693 'run_exception_test', # TODO(uekawa): disable before submitting because it
fails. |
691 ]) | 694 ]) |
692 | 695 |
693 | 696 |
694 # If a test is not in one of these suites, it will probally not be run on a | 697 # If a test is not in one of these suites, it will probally not be run on a |
695 # regular basis. These are the suites that will be run by the try bot or that | 698 # regular basis. These are the suites that will be run by the try bot or that |
696 # a large number of users may run by hand. | 699 # a large number of users may run by hand. |
697 MAJOR_TEST_SUITES = set([ | 700 MAJOR_TEST_SUITES = set([ |
698 'small_tests', | 701 'small_tests', |
699 'medium_tests', | 702 'medium_tests', |
700 'large_tests', | 703 'large_tests', |
(...skipping 2313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3014 """ | 3017 """ |
3015 if env.Bit('bitcode'): | 3018 if env.Bit('bitcode'): |
3016 # For each architecture, we only attempt to make our inline | 3019 # For each architecture, we only attempt to make our inline |
3017 # assembly code work with one untrusted-code toolchain. For x86, | 3020 # assembly code work with one untrusted-code toolchain. For x86, |
3018 # we target GCC, but not PNaCl/Clang, because the latter's | 3021 # we target GCC, but not PNaCl/Clang, because the latter's |
3019 # assembly support has various quirks that we don't want to have | 3022 # assembly support has various quirks that we don't want to have |
3020 # to debug. For ARM, we target PNaCl/Clang, because that is the | 3023 # to debug. For ARM, we target PNaCl/Clang, because that is the |
3021 # only current ARM toolchain. One day, we will have an ARM GCC | 3024 # only current ARM toolchain. One day, we will have an ARM GCC |
3022 # toolchain, and we will no longer need to use inline assembly | 3025 # toolchain, and we will no longer need to use inline assembly |
3023 # with PNaCl/Clang at all. | 3026 # with PNaCl/Clang at all. |
3024 if not (env.Bit('target_arm') or env.Bit('target_mips32')): | 3027 # |
3025 return False | 3028 # For Non-SFI NaCl we use inline assembly in PNaCl/Clang. |
| 3029 if not (env.Bit('target_arm') or env.Bit('target_mips32') |
| 3030 or env.Bit('nonsfi_nacl')): |
| 3031 return False |
3026 # Inline assembly does not work in pexes. | 3032 # Inline assembly does not work in pexes. |
3027 if env.Bit('pnacl_generate_pexe'): | 3033 if env.Bit('pnacl_generate_pexe'): |
3028 return False | 3034 return False |
3029 env.AddBiasForPNaCl() | 3035 env.AddBiasForPNaCl() |
3030 env.PNaClForceNative() | 3036 env.PNaClForceNative() |
3031 return True | 3037 return True |
3032 | 3038 |
3033 nacl_env.AddMethod(AllowInlineAssembly) | 3039 nacl_env.AddMethod(AllowInlineAssembly) |
3034 | 3040 |
3035 | 3041 |
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3997 nacl_env.ValidateSdk() | 4003 nacl_env.ValidateSdk() |
3998 | 4004 |
3999 if BROKEN_TEST_COUNT > 0: | 4005 if BROKEN_TEST_COUNT > 0: |
4000 msg = "There are %d broken tests." % BROKEN_TEST_COUNT | 4006 msg = "There are %d broken tests." % BROKEN_TEST_COUNT |
4001 if GetOption('brief_comstr'): | 4007 if GetOption('brief_comstr'): |
4002 msg += " Add --verbose to the command line for more information." | 4008 msg += " Add --verbose to the command line for more information." |
4003 print msg | 4009 print msg |
4004 | 4010 |
4005 # separate warnings from actual build output | 4011 # separate warnings from actual build output |
4006 Banner('B U I L D - O U T P U T:') | 4012 Banner('B U I L D - O U T P U T:') |
OLD | NEW |