Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / native_client / tests / nonsfi / nacl.scons
1 # -*- python -*-
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.
5
6 Import('env')
7
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'):
11   Return()
12
13 nexe = env.ComponentProgram('fcntl_test',
14                             'fcntl_test.cc',
15                             EXTRA_LIBS=['${NONIRT_LIBS}'])
16
17 node = env.CommandSelLdrTestNacl('fcntl_test.out', nexe,
18                                  args=[env.MakeEmptyFile(prefix='tmp_fcntl')])
19
20 env.AddNodeToTestSuite(node, ['small_tests'], 'run_fcntl_test')
21
22 nexe = env.ComponentProgram('fork_test',
23                             'fork_test.cc',
24                             EXTRA_LIBS=['${NONIRT_LIBS}'])
25
26 node = env.CommandSelLdrTestNacl('fork_test.out', nexe)
27
28 env.AddNodeToTestSuite(node, ['small_tests'], 'run_fork_test')
29
30 nexe = env.ComponentProgram('socket_test',
31                             'socket_test.cc',
32                             EXTRA_LIBS=['${NONIRT_LIBS}'])
33
34 node = env.CommandSelLdrTestNacl('socket_test.out', nexe)
35
36 env.AddNodeToTestSuite(node, ['small_tests'], 'run_socket_test')
37
38 nexe = env.ComponentProgram('prctl_test',
39                             'prctl_test.cc',
40                             EXTRA_LIBS=['${NONIRT_LIBS}'])
41
42 node = env.CommandSelLdrTestNacl('prctl_test.out', nexe)
43
44 env.AddNodeToTestSuite(node, ['small_tests'], 'run_prctl_test')
45
46 nexe = env.ComponentProgram('sigaction_test',
47                             'sigaction_test.cc',
48                             EXTRA_LIBS=['${NONIRT_LIBS}'])
49
50 node = env.CommandSelLdrTestNacl('sigaction_test.out', nexe)
51
52 env.AddNodeToTestSuite(node, ['small_tests'], 'run_sigaction_test')
53
54 nexe = env.ComponentProgram('signal_test',
55                             'signal_test.cc',
56                             EXTRA_LIBS=['${NONIRT_LIBS}'])
57
58 node = env.CommandSelLdrTestNacl('signal_test.out', nexe)
59
60 env.AddNodeToTestSuite(node, ['small_tests'], 'run_signal_test',
61                        is_broken=env.UsingEmulator())