| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright 2014 The Native Client Authors. All rights reserved. | 2 # Copyright 2014 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 if not env.Bit('nonsfi_nacl'): | 8 if not env.Bit('nonsfi_nacl'): |
| 9 Return() | 9 Return() |
| 10 | 10 |
| 11 env.AddBiasForPNaCl() | 11 env.AddBiasForPNaCl() |
| 12 | 12 |
| 13 nexe = env.ComponentProgram('icache_test', | 13 nexe = env.ComponentProgram('icache_test', |
| 14 'icache_test.cc', | 14 'icache_test.cc', |
| 15 EXTRA_LIBS=['${NONIRT_LIBS}']) | 15 EXTRA_LIBS=['${NONIRT_LIBS}']) |
| 16 | 16 |
| 17 node = env.CommandSelLdrTestNacl('icache_test.out', nexe) | 17 node = env.CommandSelLdrTestNacl('icache_test.out', nexe) |
| 18 | 18 |
| 19 is_broken = (not env.Bit('build_arm') or env.Bit('pnacl_generate_pexe') or | 19 is_broken = (not env.Bit('build_arm') or env.Bit('pnacl_generate_pexe') or |
| 20 not env.Bit('tests_use_irt')) | 20 not env.Bit('tests_use_irt')) |
| 21 env.AddNodeToTestSuite(node, ['small_tests'], 'run_icache_test', | 21 env.AddNodeToTestSuite(node, ['small_tests'], 'run_icache_test', |
| 22 is_broken=is_broken) | 22 is_broken=is_broken) |
| 23 | 23 |
| 24 # Tests sending and receiving userspace signals. This test only works with the |
| 25 # newlib nonsfi loader. |
| 26 if env.Bit('tests_use_irt') and env.Bit('use_newlib_nonsfi_loader'): |
| 27 nexe = env.ComponentProgram('user_async_signal_test', |
| 28 'user_async_signal_test.cc', |
| 29 EXTRA_LIBS=['${NONIRT_LIBS}']) |
| 30 node = env.CommandSelLdrTestNacl('user_async_signal_test.out', nexe) |
| 31 env.AddNodeToTestSuite(node, ['small_tests'], 'run_user_async_signal_test') |
| 32 |
| 24 # The subsequent tests are for syscall wrappers required by newlib | 33 # The subsequent tests are for syscall wrappers required by newlib |
| 25 # based non-SFI nacl_helper. The rest of NaCl does not need them. | 34 # based non-SFI nacl_helper. The rest of NaCl does not need them. |
| 26 if env.Bit('tests_use_irt'): | 35 if env.Bit('tests_use_irt'): |
| 27 Return() | 36 Return() |
| 28 | 37 |
| 29 nexe = env.ComponentProgram('fcntl_test', | 38 nexe = env.ComponentProgram('fcntl_test', |
| 30 'fcntl_test.cc', | 39 'fcntl_test.cc', |
| 31 EXTRA_LIBS=['${NONIRT_LIBS}']) | 40 EXTRA_LIBS=['${NONIRT_LIBS}']) |
| 32 | 41 |
| 33 node = env.CommandSelLdrTestNacl('fcntl_test.out', nexe, | 42 node = env.CommandSelLdrTestNacl('fcntl_test.out', nexe, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 env.AddNodeToTestSuite(node, ['small_tests'], 'run_clone_test') | 138 env.AddNodeToTestSuite(node, ['small_tests'], 'run_clone_test') |
| 130 | 139 |
| 131 | 140 |
| 132 nexe = env.ComponentProgram('rlimit_test', | 141 nexe = env.ComponentProgram('rlimit_test', |
| 133 'rlimit_test.cc', | 142 'rlimit_test.cc', |
| 134 EXTRA_LIBS=['${NONIRT_LIBS}']) | 143 EXTRA_LIBS=['${NONIRT_LIBS}']) |
| 135 | 144 |
| 136 node = env.CommandSelLdrTestNacl('rlimit_test.out', nexe) | 145 node = env.CommandSelLdrTestNacl('rlimit_test.out', nexe) |
| 137 | 146 |
| 138 env.AddNodeToTestSuite(node, ['small_tests'], 'run_rlimit_test') | 147 env.AddNodeToTestSuite(node, ['small_tests'], 'run_rlimit_test') |
| OLD | NEW |