OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2010 The Native Client Authors. All rights reserved. | 2 # Copyright 2010 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
5 | 5 |
6 Import('env') | 6 Import('env') |
7 | 7 |
8 # Use of "-nostdlib" means these tests produce statically-linked | 8 # Use of "-nostdlib" means these tests produce statically-linked |
9 # executables. This does not work with the test runner for | 9 # executables. This does not work with the test runner for |
10 # nacl-glibc, which always runs the executables via ld.so. However, | 10 # nacl-glibc, which always runs the executables via ld.so. However, |
11 # we want to keep building the tests. | 11 # we want to keep building the tests. |
12 # TODO(mseaborn): To fix this, either switch these tests to | 12 # TODO(mseaborn): To fix this, either switch these tests to |
13 # dynamically link against libc, or make use of ld.so optional. | 13 # dynamically link against libc, or make use of ld.so optional. |
14 is_glibc = env.Bit('nacl_glibc') | 14 is_glibc = env.Bit('nacl_glibc') |
15 | 15 |
16 env.Replace(LIBS=[], | 16 env.Replace(LIBS=[], |
17 EXTRA_LIBS=[], | 17 EXTRA_LIBS=[], |
18 LINKFLAGS=['-nostdlib']) | 18 LINKFLAGS=['-nostdlib'], |
| 19 TRANSLATEFLAGS=['-nostdlib']) |
19 | 20 |
20 # This setting will affect the barebones_regs.c test | 21 # This setting will affect the barebones_regs.c test |
21 if env.Bit('build_arm'): | 22 if env.Bit('build_arm'): |
22 env.Append(CPPDEFINES='SMALL_REGS_TEST') | 23 env.Append(CPPDEFINES='SMALL_REGS_TEST') |
23 | 24 |
24 | 25 |
25 # NOTE: the x86 linker wants _start() to be the very first function | 26 # NOTE: the x86 linker wants _start() to be the very first function |
26 FAKE_STARTUP = env.ComponentObject('fake_startup', 'fake_startup.c') | 27 FAKE_STARTUP = env.ComponentObject('fake_startup', 'fake_startup.c') |
27 | 28 |
28 barebones_tests = ['addr_modes', | 29 barebones_tests = ['addr_modes', |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 '${SCONSTRUCT_DIR}/tests/prebuilt/arm/gold-barebones_hello_world${PROGSUFFIX}' | 87 '${SCONSTRUCT_DIR}/tests/prebuilt/arm/gold-barebones_hello_world${PROGSUFFIX}' |
87 ) | 88 ) |
88 node = env.CommandSelLdrTestNacl( | 89 node = env.CommandSelLdrTestNacl( |
89 'gold-barebones_hello_world.out', | 90 'gold-barebones_hello_world.out', |
90 nexe, | 91 nexe, |
91 exit_status='55',) | 92 exit_status='55',) |
92 env.AddNodeToTestSuite(node, | 93 env.AddNodeToTestSuite(node, |
93 ['small_tests', 'sel_ldr_tests'], | 94 ['small_tests', 'sel_ldr_tests'], |
94 'run_gold-barebones_hello_world_test', | 95 'run_gold-barebones_hello_world_test', |
95 is_broken=is_glibc) | 96 is_broken=is_glibc) |
OLD | NEW |