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

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

Issue 744803003: Non-SFI mode: Add syscalls which are needed for nacl_helper_nonsfi's sandbox. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 6 years 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 | Annotate | Revision Log
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 # Tests in this directory are for syscall wrappers required by newlib 8 # Tests in this directory are for syscall wrappers required by newlib
9 # based non-SFI nacl_helper. The rest of NaCl does not need them. 9 # based non-SFI nacl_helper. The rest of NaCl does not need them.
10 if not env.Bit('nonsfi_nacl') or env.Bit('tests_use_irt'): 10 if not env.Bit('nonsfi_nacl') or env.Bit('tests_use_irt'):
11 Return() 11 Return()
12 12
13 nexe = env.ComponentProgram('fcntl_test', 13 nexe = env.ComponentProgram('fcntl_test',
14 'fcntl_test.cc', 14 'fcntl_test.cc',
15 EXTRA_LIBS=['${NONIRT_LIBS}']) 15 EXTRA_LIBS=['${NONIRT_LIBS}'])
16 16
17 node = env.CommandSelLdrTestNacl('fcntl_test.out', nexe, 17 node = env.CommandSelLdrTestNacl('fcntl_test.out', nexe,
18 args=[env.MakeEmptyFile(prefix='tmp_fcntl')]) 18 args=[env.MakeEmptyFile(prefix='tmp_fcntl')])
19 19
20 env.AddNodeToTestSuite(node, ['small_tests'], 'run_fcntl_test') 20 env.AddNodeToTestSuite(node, ['small_tests'], 'run_fcntl_test')
21 21
22 nexe = env.ComponentProgram('file_descriptor_test',
23 'file_descriptor_test.cc',
24 EXTRA_LIBS=['${NONIRT_LIBS}'])
25
26 node = env.CommandSelLdrTestNacl(
27 'file_descriptor_test.out', nexe,
28 args=[env.MakeTempDir(prefix='tmp_file_desciprtor')])
29
30 env.AddNodeToTestSuite(node, ['small_tests'], 'run_file_descriptor_test')
31
22 nexe = env.ComponentProgram('fork_test', 32 nexe = env.ComponentProgram('fork_test',
23 'fork_test.cc', 33 'fork_test.cc',
24 EXTRA_LIBS=['${NONIRT_LIBS}']) 34 EXTRA_LIBS=['${NONIRT_LIBS}'])
25 35
26 node = env.CommandSelLdrTestNacl('fork_test.out', nexe) 36 node = env.CommandSelLdrTestNacl('fork_test.out', nexe)
27 37
28 env.AddNodeToTestSuite(node, ['small_tests'], 'run_fork_test') 38 env.AddNodeToTestSuite(node, ['small_tests'], 'run_fork_test')
29 39
30 nexe = env.ComponentProgram('socket_test', 40 nexe = env.ComponentProgram('socket_test',
31 'socket_test.cc', 41 'socket_test.cc',
(...skipping 30 matching lines...) Expand all
62 72
63 nexe = env.ComponentProgram('signal_sigbus_test', 73 nexe = env.ComponentProgram('signal_sigbus_test',
64 'signal_sigbus_test.cc', 74 'signal_sigbus_test.cc',
65 EXTRA_LIBS=['${NONIRT_LIBS}']) 75 EXTRA_LIBS=['${NONIRT_LIBS}'])
66 76
67 node = env.CommandSelLdrTestNacl('signal_sigbus_test.out', nexe, 77 node = env.CommandSelLdrTestNacl('signal_sigbus_test.out', nexe,
68 args=[env.File('test_file')]) 78 args=[env.File('test_file')])
69 79
70 env.AddNodeToTestSuite(node, ['small_tests'], 'run_signal_sigbus_test', 80 env.AddNodeToTestSuite(node, ['small_tests'], 'run_signal_sigbus_test',
71 is_broken=env.UsingEmulator()) 81 is_broken=env.UsingEmulator())
OLDNEW
« tests/nonsfi/file_descriptor_test.cc ('K') | « tests/nonsfi/file_descriptor_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698