Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / native_client / tests / srpc_message / nacl.scons
1 # -*- python -*-
2 # Copyright (c) 2011 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 ######################################################################
9 # Simple RPC message fragmentation tests
10 ######################################################################
11 srpc_message_untrusted_nexe = env.ComponentProgram(
12     'srpc_message_untrusted_test',
13     env.ComponentObject('srpc_message_untrusted', 'srpc_message.c'),
14     EXTRA_LIBS=[
15         'srpc',
16         'imc_syscalls',
17         'platform',
18         'gio',
19         'm',
20         '${PTHREAD_LIBS}',
21         '${NONIRT_LIBS}'])
22
23 node = env.CommandSelLdrTestNacl('srpc_message_untrusted_test.out',
24                                  srpc_message_untrusted_nexe,
25                                  args=['1048576', '65536', '32'],
26                                  # Pass '-a' to enable imc_makeboundsock().
27                                  sel_ldr_flags=['-a'])
28
29 # TODO(ncbray) re-enable on Windows.
30 # http://code.google.com/p/nativeclient/issues/detail?id=3022
31 env.AddNodeToTestSuite(node, ['small_tests'], 'run_srpc_message_untrusted_test',
32                        is_broken=env.Bit('host_windows'))