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 os | 6 import os |
7 Import('env') | 7 Import('env') |
8 | 8 |
9 if env.Bit('linux'): | 9 if env.Bit('linux'): |
10 | 10 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 validator_tests = { | 90 validator_tests = { |
91 'test_forbidden_instructions': 1, | 91 'test_forbidden_instructions': 1, |
92 'test_sp_updates': 1, | 92 'test_sp_updates': 1, |
93 'test_stores': 1, | 93 'test_stores': 1, |
94 'test_loads': 1, | 94 'test_loads': 1, |
95 'test_jmp_reg': 1, | 95 'test_jmp_reg': 1, |
96 'test_jmp_imm': 1, | 96 'test_jmp_imm': 1, |
97 'test_read_only_regs': 1, | 97 'test_read_only_regs': 1, |
98 'test_invalid_dest': 1, | 98 'test_invalid_dest': 1, |
99 'test_unpredicted': 1, | 99 'test_unpredicted': 1, |
| 100 'test_tp_access': 1, |
100 } | 101 } |
101 | 102 |
102 if env.Bit('build_mips32'): | 103 if env.Bit('build_mips32'): |
103 for test, exit_status in validator_tests.iteritems(): | 104 for test, exit_status in validator_tests.iteritems(): |
104 if test == 'test_invalid_dest': | 105 if test == 'test_invalid_dest': |
105 text_section_start = '-Wl,--section-start,.text=0x0FFFA000' | 106 text_section_start = '-Wl,--section-start,.text=0x0FFFA000' |
106 else: | 107 else: |
107 text_section_start = '-Wl,--section-start,.text=0x00020000' | 108 text_section_start = '-Wl,--section-start,.text=0x00020000' |
108 nexe = env.ComponentProgram( | 109 nexe = env.ComponentProgram( |
109 'testdata/%s.nexe' % test, | 110 'testdata/%s.nexe' % test, |
(...skipping 15 matching lines...) Expand all Loading... |
125 # a program of the same name. | 126 # a program of the same name. |
126 validator_tests_exe = gtest_env.ComponentProgram('mips_validator_tests', | 127 validator_tests_exe = gtest_env.ComponentProgram('mips_validator_tests', |
127 ['validator_tests.cc'], | 128 ['validator_tests.cc'], |
128 EXTRA_LIBS=['mips_validator_core']) | 129 EXTRA_LIBS=['mips_validator_core']) |
129 | 130 |
130 test_node = gtest_env.CommandTest( | 131 test_node = gtest_env.CommandTest( |
131 'mips_validator_tests.out', | 132 'mips_validator_tests.out', |
132 command=[validator_tests_exe]) | 133 command=[validator_tests_exe]) |
133 gtest_env.AddNodeToTestSuite(test_node, ['small_tests'], | 134 gtest_env.AddNodeToTestSuite(test_node, ['small_tests'], |
134 'run_mips_validator_tests') | 135 'run_mips_validator_tests') |
OLD | NEW |