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 platform | 6 import platform |
7 import os | 7 import os |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
770 # it. | 770 # it. |
771 nullptr_nexe = untrusted_env.GetTranslatedNexe( | 771 nullptr_nexe = untrusted_env.GetTranslatedNexe( |
772 untrusted_env.File('$STAGING_DIR/nullptr$PROGSUFFIX')) | 772 untrusted_env.File('$STAGING_DIR/nullptr$PROGSUFFIX')) |
773 | 773 |
774 node = env.CommandSelLdrTestNacl( | 774 node = env.CommandSelLdrTestNacl( |
775 'fuzz_nullptr_test.out', | 775 'fuzz_nullptr_test.out', |
776 nullptr_nexe, | 776 nullptr_nexe, |
777 sel_ldr_flags=['-F']) | 777 sel_ldr_flags=['-F']) |
778 env.AddNodeToTestSuite(node, ['small_tests'], 'run_fuzz_nullptr_test') | 778 env.AddNodeToTestSuite(node, ['small_tests'], 'run_fuzz_nullptr_test') |
779 | 779 |
780 # Test hello_world binary with obsolete, non-ragel based validator. | |
781 if (not env.Bit('validator_ragel') and env.Bit('target_x86') | |
782 and env.Bit('nacl_static_link')): | |
783 node = env.CommandSelLdrTestNacl( | |
784 'dfa_hwd.out', | |
785 hello_world_nexe, | |
786 stdout_golden = env.File('testdata/hello_world.stdout'), | |
787 stderr_golden = env.File('testdata/non_dfa_validator_hello.stderr'), | |
Mark Seaborn
2014/10/07 21:53:46
Also remove the file 'testdata/non_dfa_validator_h
shyamsundarr
2014/10/08 19:59:03
Done.
| |
788 filter_regex = '"^(Hello, World!)$' + '|' + | |
789 '^[[][^]]*[]] (USING OBSOLETE NON-DFA-BASED VALIDATOR!)$"', | |
790 filter_group_only = 'true', | |
791 ) | |
792 env.AddNodeToTestSuite(node, ['medium_tests', 'validator_tests'], | |
793 'run_dfa_validator_hello_world_test') | |
794 | |
795 if env.Bit('target_mips32'): | 780 if env.Bit('target_mips32'): |
796 text_region_start = 0x00020000 | 781 text_region_start = 0x00020000 |
797 # Use arbitrary non-page-aligned addresses for data and rodata. | 782 # Use arbitrary non-page-aligned addresses for data and rodata. |
798 rodata_region_start = 0x10020094 | 783 rodata_region_start = 0x10020094 |
799 data_region_start = 0x10030098 | 784 data_region_start = 0x10030098 |
800 untrusted_env.Append(CPPFLAGS=['--pnacl-allow-native', '-arch', 'mips32']) | 785 untrusted_env.Append(CPPFLAGS=['--pnacl-allow-native', '-arch', 'mips32']) |
801 unaligned_data_objs = untrusted_env.ComponentObject( | 786 unaligned_data_objs = untrusted_env.ComponentObject( |
802 'arch/mips/unaligned_data_test.S') | 787 'arch/mips/unaligned_data_test.S') |
803 unaligned_data_nexe = untrusted_env.ComponentProgram( | 788 unaligned_data_nexe = untrusted_env.ComponentProgram( |
804 'unaligned_data.nexe', | 789 'unaligned_data.nexe', |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1031 is_broken=is_broken) | 1016 is_broken=is_broken) |
1032 | 1017 |
1033 dyn_array_test_exe = env.ComponentProgram('dyn_array_test', | 1018 dyn_array_test_exe = env.ComponentProgram('dyn_array_test', |
1034 ['dyn_array_test.c'], | 1019 ['dyn_array_test.c'], |
1035 EXTRA_LIBS=sel_ldr_libs) | 1020 EXTRA_LIBS=sel_ldr_libs) |
1036 | 1021 |
1037 node = env.CommandTest('dyn_array_test.out', | 1022 node = env.CommandTest('dyn_array_test.out', |
1038 command=[dyn_array_test_exe]) | 1023 command=[dyn_array_test_exe]) |
1039 | 1024 |
1040 env.AddNodeToTestSuite(node, ['small_tests'], 'run_dyn_array_test') | 1025 env.AddNodeToTestSuite(node, ['small_tests'], 'run_dyn_array_test') |
OLD | NEW |