OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 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 | 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 imc_shm_mmap_test_nexe_name = ('imc_shm_mmap_test_%s.nexe' % | 8 imc_shm_mmap_test_nexe_name = ('imc_shm_mmap_test_%s' % |
9 env.get('TARGET_FULLARCH')) | 9 env.get('TARGET_FULLARCH')) |
10 imc_shm_mmap_test_nexe = env.ComponentProgram(imc_shm_mmap_test_nexe_name, | 10 imc_shm_mmap_test_nexe = env.ComponentProgram(imc_shm_mmap_test_nexe_name, |
11 'imc_shm_mmap_test.c', | 11 'imc_shm_mmap_test.c', |
12 EXTRA_LIBS=[ | 12 EXTRA_LIBS=[ |
13 '${NON_PPAPI_BROWSER_LIBS}', | 13 '${NON_PPAPI_BROWSER_LIBS}', |
14 'testrunner', | 14 'testrunner', |
15 'srpc', | 15 'srpc', |
16 'imc_syscalls', | 16 'imc_syscalls', |
17 'platform', | 17 'platform', |
18 'gio', | 18 'gio', |
19 'pthread', | 19 'pthread', |
20 ]) | 20 ]) |
21 env.Publish(imc_shm_mmap_test_nexe_name, 'run', ['imc_shm_mmap_test.nmf']) | 21 env.Publish(imc_shm_mmap_test_nexe_name, 'run', ['imc_shm_mmap_test.nmf']) |
22 | 22 |
23 node = env.CommandSelLdrTestNacl( | 23 node = env.CommandSelLdrTestNacl( |
24 'imc_shm_mmap_test.out', | 24 'imc_shm_mmap_test.out', |
25 command=[imc_shm_mmap_test_nexe], | 25 imc_shm_mmap_test_nexe, |
26 # We need to set this because the test needs to behave | 26 # We need to set this because the test needs to behave |
27 # differently in the plugin, but the plugin does not provide a | 27 # differently in the plugin, but the plugin does not provide a |
28 # way to distinguish itself. TODO(mseaborn): Fix that. | 28 # way to distinguish itself. TODO(mseaborn): Fix that. |
29 # See http://code.google.com/p/nativeclient/issues/detail?id=889 | 29 # See http://code.google.com/p/nativeclient/issues/detail?id=889 |
30 sel_ldr_flags=['-E', 'NACL_SRPC_STANDALONE=1']) | 30 sel_ldr_flags=['-E', 'NACL_SRPC_STANDALONE=1']) |
31 env.AddNodeToTestSuite(node, ['small_tests'], 'run_imc_shm_mmap_test') | 31 env.AddNodeToTestSuite(node, ['small_tests'], 'run_imc_shm_mmap_test') |
OLD | NEW |