| 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 |
| 153 thread_stack_test_nexe = env.ComponentProgram('thread_stack_test', | 166 thread_stack_test_nexe = env.ComponentProgram('thread_stack_test', |
| 154 'thread_stack_test.c', | 167 'thread_stack_test.c', |
| 155 EXTRA_LIBS=['${PTHREAD_LIBS}', | 168 EXTRA_LIBS=['${PTHREAD_LIBS}', |
| 156 '${NONIRT_LIBS}']) | 169 '${NONIRT_LIBS}']) |
| 157 | 170 |
| 158 node = env.CommandSelLdrTestNacl( | 171 node = env.CommandSelLdrTestNacl( |
| 159 'thread_stack_test.out', | 172 'thread_stack_test.out', |
| 160 thread_stack_test_nexe, | 173 thread_stack_test_nexe, |
| 161 size='small', | 174 size='small', |
| 162 ) | 175 ) |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 264 |
| 252 # This tests an interface that is provided by nacl-newlib but not nacl-glibc. | 265 # This tests an interface that is provided by nacl-newlib but not nacl-glibc. |
| 253 if not env.Bit('nacl_glibc'): | 266 if not env.Bit('nacl_glibc'): |
| 254 stack_end_test_nexe = env.ComponentProgram( | 267 stack_end_test_nexe = env.ComponentProgram( |
| 255 'stack_end_test', ['stack_end_test.c'], | 268 'stack_end_test', ['stack_end_test.c'], |
| 256 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) | 269 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) |
| 257 | 270 |
| 258 node = env.CommandSelLdrTestNacl('stack_end_test.out', | 271 node = env.CommandSelLdrTestNacl('stack_end_test.out', |
| 259 stack_end_test_nexe) | 272 stack_end_test_nexe) |
| 260 env.AddNodeToTestSuite(node, ['small_tests'], 'run_stack_end_test') | 273 env.AddNodeToTestSuite(node, ['small_tests'], 'run_stack_end_test') |
| OLD | NEW |