| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 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 # NOTE: the arm emulator does not handle atomic ops properly | 8 # NOTE: the arm emulator does not handle atomic ops properly |
| 9 # NOTE: the default setting of 10k rounds is too slow on ARM | 9 # NOTE: the default setting of 10k rounds is too slow on ARM |
| 10 EXTRA_ARGS = ['100'] | 10 EXTRA_ARGS = ['100'] |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) | 143 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) |
| 144 | 144 |
| 145 node = env.CommandSelLdrTestNacl( | 145 node = env.CommandSelLdrTestNacl( |
| 146 'mutex_timedlock_test.out', | 146 'mutex_timedlock_test.out', |
| 147 mutex_timedlock_test_nexe | 147 mutex_timedlock_test_nexe |
| 148 ) | 148 ) |
| 149 env.AddNodeToTestSuite(node, ['small_tests'], 'run_mutex_timedlock_test', | 149 env.AddNodeToTestSuite(node, ['small_tests'], 'run_mutex_timedlock_test', |
| 150 is_broken=env.IsRunningUnderValgrind() or | 150 is_broken=env.IsRunningUnderValgrind() or |
| 151 env.UsingEmulator()) | 151 env.UsingEmulator()) |
| 152 | 152 |
| 153 rwlock_test_nexe = env.ComponentProgram( | |
| 154 'rwlock_test', | |
| 155 ['rwlock_test.c'], | |
| 156 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) | |
| 157 | |
| 158 node = env.CommandSelLdrTestNacl( | |
| 159 'rwlock_test.out', | |
| 160 rwlock_test_nexe | |
| 161 ) | |
| 162 env.AddNodeToTestSuite(node, ['small_tests'], 'run_rwlock_test', | |
| 163 is_broken=env.IsRunningUnderValgrind() or | |
| 164 env.UsingEmulator()) | |
| 165 | |
| 166 thread_stack_test_nexe = env.ComponentProgram('thread_stack_test', | 153 thread_stack_test_nexe = env.ComponentProgram('thread_stack_test', |
| 167 'thread_stack_test.c', | 154 'thread_stack_test.c', |
| 168 EXTRA_LIBS=['${PTHREAD_LIBS}', | 155 EXTRA_LIBS=['${PTHREAD_LIBS}', |
| 169 '${NONIRT_LIBS}']) | 156 '${NONIRT_LIBS}']) |
| 170 | 157 |
| 171 node = env.CommandSelLdrTestNacl( | 158 node = env.CommandSelLdrTestNacl( |
| 172 'thread_stack_test.out', | 159 'thread_stack_test.out', |
| 173 thread_stack_test_nexe, | 160 thread_stack_test_nexe, |
| 174 size='small', | 161 size='small', |
| 175 ) | 162 ) |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 251 |
| 265 # This tests an interface that is provided by nacl-newlib but not nacl-glibc. | 252 # This tests an interface that is provided by nacl-newlib but not nacl-glibc. |
| 266 if not env.Bit('nacl_glibc'): | 253 if not env.Bit('nacl_glibc'): |
| 267 stack_end_test_nexe = env.ComponentProgram( | 254 stack_end_test_nexe = env.ComponentProgram( |
| 268 'stack_end_test', ['stack_end_test.c'], | 255 'stack_end_test', ['stack_end_test.c'], |
| 269 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) | 256 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) |
| 270 | 257 |
| 271 node = env.CommandSelLdrTestNacl('stack_end_test.out', | 258 node = env.CommandSelLdrTestNacl('stack_end_test.out', |
| 272 stack_end_test_nexe) | 259 stack_end_test_nexe) |
| 273 env.AddNodeToTestSuite(node, ['small_tests'], 'run_stack_end_test') | 260 env.AddNodeToTestSuite(node, ['small_tests'], 'run_stack_end_test') |
| OLD | NEW |