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

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

Issue 1300883003: Revert of Non-SFI mode: Add Linux asynchronous signal support (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « src/untrusted/irt/irt.h ('k') | tests/nonsfi/user_async_signal_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 node = env.CommandSelLdrTestNacl('user_async_signal_test.out', nexe)
31 env.AddNodeToTestSuite(node, ['small_tests'], 'run_user_async_signal_test')
32
33 # The subsequent tests are for syscall wrappers required by newlib 24 # The subsequent tests are for syscall wrappers required by newlib
34 # based non-SFI nacl_helper. The rest of NaCl does not need them. 25 # based non-SFI nacl_helper. The rest of NaCl does not need them.
35 if env.Bit('tests_use_irt'): 26 if env.Bit('tests_use_irt'):
36 Return() 27 Return()
37 28
38 nexe = env.ComponentProgram('fcntl_test', 29 nexe = env.ComponentProgram('fcntl_test',
39 'fcntl_test.cc', 30 'fcntl_test.cc',
40 EXTRA_LIBS=['${NONIRT_LIBS}']) 31 EXTRA_LIBS=['${NONIRT_LIBS}'])
41 32
42 node = env.CommandSelLdrTestNacl('fcntl_test.out', nexe, 33 node = env.CommandSelLdrTestNacl('fcntl_test.out', nexe,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 env.AddNodeToTestSuite(node, ['small_tests'], 'run_clone_test') 129 env.AddNodeToTestSuite(node, ['small_tests'], 'run_clone_test')
139 130
140 131
141 nexe = env.ComponentProgram('rlimit_test', 132 nexe = env.ComponentProgram('rlimit_test',
142 'rlimit_test.cc', 133 'rlimit_test.cc',
143 EXTRA_LIBS=['${NONIRT_LIBS}']) 134 EXTRA_LIBS=['${NONIRT_LIBS}'])
144 135
145 node = env.CommandSelLdrTestNacl('rlimit_test.out', nexe) 136 node = env.CommandSelLdrTestNacl('rlimit_test.out', nexe)
146 137
147 env.AddNodeToTestSuite(node, ['small_tests'], 'run_rlimit_test') 138 env.AddNodeToTestSuite(node, ['small_tests'], 'run_rlimit_test')
OLDNEW
« no previous file with comments | « src/untrusted/irt/irt.h ('k') | tests/nonsfi/user_async_signal_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698