Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: tests/nonsfi/nacl.scons

Issue 1212613002: Non-SFI mode: Add Linux asynchronous signal support (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Disabled the async signal test for glibc Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 '${EXCEPTION_LIBS}'])
Mark Seaborn 2015/08/12 01:43:07 I don't think this executable uses EXCEPTION_LIBS.
Luis Héctor Chávez 2015/08/12 22:14:27 Done.
31 node = env.CommandSelLdrTestNacl('user_async_signal_test.out', nexe)
32 env.AddNodeToTestSuite(node, ['small_tests'], 'run_user_async_signal_test')
33
24 # The subsequent tests are for syscall wrappers required by newlib 34 # The subsequent tests are for syscall wrappers required by newlib
25 # based non-SFI nacl_helper. The rest of NaCl does not need them. 35 # based non-SFI nacl_helper. The rest of NaCl does not need them.
26 if env.Bit('tests_use_irt'): 36 if env.Bit('tests_use_irt'):
27 Return() 37 Return()
28 38
29 nexe = env.ComponentProgram('fcntl_test', 39 nexe = env.ComponentProgram('fcntl_test',
30 'fcntl_test.cc', 40 'fcntl_test.cc',
31 EXTRA_LIBS=['${NONIRT_LIBS}']) 41 EXTRA_LIBS=['${NONIRT_LIBS}'])
32 42
33 node = env.CommandSelLdrTestNacl('fcntl_test.out', nexe, 43 node = env.CommandSelLdrTestNacl('fcntl_test.out', nexe,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 env.AddNodeToTestSuite(node, ['small_tests'], 'run_clone_test') 139 env.AddNodeToTestSuite(node, ['small_tests'], 'run_clone_test')
130 140
131 141
132 nexe = env.ComponentProgram('rlimit_test', 142 nexe = env.ComponentProgram('rlimit_test',
133 'rlimit_test.cc', 143 'rlimit_test.cc',
134 EXTRA_LIBS=['${NONIRT_LIBS}']) 144 EXTRA_LIBS=['${NONIRT_LIBS}'])
135 145
136 node = env.CommandSelLdrTestNacl('rlimit_test.out', nexe) 146 node = env.CommandSelLdrTestNacl('rlimit_test.out', nexe)
137 147
138 env.AddNodeToTestSuite(node, ['small_tests'], 'run_rlimit_test') 148 env.AddNodeToTestSuite(node, ['small_tests'], 'run_rlimit_test')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698