| 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('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 | 19 |
| 20 # This can generate references to runtime code we won't link with. | 20 # This can generate references to runtime code we won't link with. |
| 21 env.FilterOut(CCFLAGS=['-fasynchronous-unwind-tables']) | 21 env.FilterOut(CCFLAGS=['-fasynchronous-unwind-tables']) |
| 22 | 22 |
| 23 # This setting will affect the barebones_regs.c test | 23 # This setting will affect the barebones_regs.c test |
| 24 if env.Bit('build_arm'): | 24 if env.Bit('build_arm') or env.Bit('build_mips32'): |
| 25 env.Append(CPPDEFINES='SMALL_REGS_TEST') | 25 env.Append(CPPDEFINES='SMALL_REGS_TEST') |
| 26 | 26 |
| 27 # NOTE: the x86 linker wants _start() to be the very first function | 27 # NOTE: the x86 linker wants _start() to be the very first function |
| 28 FAKE_STARTUP = env.ComponentObject('fake_startup', 'fake_startup.c') | 28 FAKE_STARTUP = env.ComponentObject('fake_startup', 'fake_startup.c') |
| 29 | 29 |
| 30 barebones_tests = ['addr_modes', | 30 barebones_tests = ['addr_modes', |
| 31 'exit', | 31 'exit', |
| 32 'fib', | 32 'fib', |
| 33 'hello_world', | 33 'hello_world', |
| 34 'negindex', | 34 'negindex', |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 # it tests for cannot happen in a segment-based sandbox, only with | 74 # it tests for cannot happen in a segment-based sandbox, only with |
| 75 # a sandbox where some kind of address-masking is done. | 75 # a sandbox where some kind of address-masking is done. |
| 76 if not env.Bit('bitcode') and not env.Bit('build_x86_32'): | 76 if not env.Bit('bitcode') and not env.Bit('build_x86_32'): |
| 77 nexe = env.ComponentProgram('top_of_sandbox', ['top_of_sandbox.c']) | 77 nexe = env.ComponentProgram('top_of_sandbox', ['top_of_sandbox.c']) |
| 78 node = env.CommandSelLdrTestNacl('top_of_sandbox.out', nexe) | 78 node = env.CommandSelLdrTestNacl('top_of_sandbox.out', nexe) |
| 79 env.AddNodeToTestSuite( | 79 env.AddNodeToTestSuite( |
| 80 node, ['small_tests', 'sel_ldr_tests', | 80 node, ['small_tests', 'sel_ldr_tests', |
| 81 'barebones_tests', 'nonpexe_tests'], | 81 'barebones_tests', 'nonpexe_tests'], |
| 82 'run_top_of_sandbox_test', | 82 'run_top_of_sandbox_test', |
| 83 is_broken=is_glibc) | 83 is_broken=is_glibc) |
| OLD | NEW |