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
4 # found in the LICENSE file.
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.
10 if not env.Bit('nonsfi_nacl') or env.Bit('tests_use_irt'):
13 nexe = env.ComponentProgram('fcntl_test',
15 EXTRA_LIBS=['${NONIRT_LIBS}'])
17 node = env.CommandSelLdrTestNacl('fcntl_test.out', nexe,
18 args=[env.MakeEmptyFile(prefix='tmp_fcntl')])
20 env.AddNodeToTestSuite(node, ['small_tests'], 'run_fcntl_test')
22 nexe = env.ComponentProgram('fork_test',
24 EXTRA_LIBS=['${NONIRT_LIBS}'])
26 node = env.CommandSelLdrTestNacl('fork_test.out', nexe)
28 env.AddNodeToTestSuite(node, ['small_tests'], 'run_fork_test')
30 nexe = env.ComponentProgram('socket_test',
32 EXTRA_LIBS=['${NONIRT_LIBS}'])
34 node = env.CommandSelLdrTestNacl('socket_test.out', nexe)
36 env.AddNodeToTestSuite(node, ['small_tests'], 'run_socket_test')
38 nexe = env.ComponentProgram('prctl_test',
40 EXTRA_LIBS=['${NONIRT_LIBS}'])
42 node = env.CommandSelLdrTestNacl('prctl_test.out', nexe)
44 env.AddNodeToTestSuite(node, ['small_tests'], 'run_prctl_test')
46 nexe = env.ComponentProgram('sigaction_test',
48 EXTRA_LIBS=['${NONIRT_LIBS}'])
50 node = env.CommandSelLdrTestNacl('sigaction_test.out', nexe)
52 env.AddNodeToTestSuite(node, ['small_tests'], 'run_sigaction_test')
54 nexe = env.ComponentProgram('signal_test',
56 EXTRA_LIBS=['${NONIRT_LIBS}'])
58 node = env.CommandSelLdrTestNacl('signal_test.out', nexe)
60 env.AddNodeToTestSuite(node, ['small_tests'], 'run_signal_test',
61 is_broken=env.UsingEmulator())