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 test_libs = ['testrunner', | 8 test_libs = ['testrunner', |
9 'srpc', | 9 'srpc', |
10 'imc_syscalls', | 10 'imc_syscalls', |
11 'platform', | 11 'platform', |
12 'gio'] | 12 'gio'] |
13 | 13 |
14 objs = env.ComponentObject('imc_shm_mmap_test', 'imc_shm_mmap_test.c') | 14 objs = env.ComponentObject('imc_shm_mmap_test', 'imc_shm_mmap_test.c') |
15 | 15 |
16 imc_shm_mmap_test_nexe_name = ('imc_shm_mmap_test_%s' % | 16 imc_shm_mmap_test_nexe_name = ('imc_shm_mmap_test_%s' % |
17 env.get('TARGET_FULLARCH')) | 17 env.get('TARGET_FULLARCH')) |
18 imc_shm_mmap_test_nexe = env.ComponentProgram(imc_shm_mmap_test_nexe_name, | 18 imc_shm_mmap_test_nexe = env.ComponentProgram(imc_shm_mmap_test_nexe_name, |
19 objs, | 19 objs, |
20 EXTRA_LIBS=test_libs + [ | 20 EXTRA_LIBS=test_libs + [ |
21 '${NON_PPAPI_BROWSER_LIBS}', | 21 '${NON_PPAPI_BROWSER_LIBS}', |
22 '${PTHREAD_LIBS}', | 22 '${PTHREAD_LIBS}', |
23 ]) | 23 ]) |
24 env.Publish(imc_shm_mmap_test_nexe_name, 'run', ['imc_shm_mmap_test.nmf']) | |
25 | 24 |
26 imc_shm_mmap_test_nonbrowser = env.ComponentProgram( | 25 imc_shm_mmap_test_nonbrowser = env.ComponentProgram( |
27 'imc_shm_mmap_test_nonbrowser', | 26 'imc_shm_mmap_test_nonbrowser', |
28 objs, | 27 objs, |
29 EXTRA_LIBS=test_libs + ['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) | 28 EXTRA_LIBS=test_libs + ['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) |
30 | 29 |
31 node = env.CommandSelLdrTestNacl( | 30 node = env.CommandSelLdrTestNacl( |
32 'imc_shm_mmap_test.out', | 31 'imc_shm_mmap_test.out', |
33 imc_shm_mmap_test_nonbrowser, | 32 imc_shm_mmap_test_nonbrowser, |
34 # We need to set this because the test needs to behave | 33 # We need to set this because the test needs to behave |
35 # differently in the plugin, but the plugin does not provide a | 34 # differently in the plugin, but the plugin does not provide a |
36 # way to distinguish itself. TODO(mseaborn): Fix that. | 35 # way to distinguish itself. TODO(mseaborn): Fix that. |
37 # See http://code.google.com/p/nativeclient/issues/detail?id=889 | 36 # See http://code.google.com/p/nativeclient/issues/detail?id=889 |
38 sel_ldr_flags=['-E', 'NACL_SRPC_STANDALONE=1']) | 37 sel_ldr_flags=['-E', 'NACL_SRPC_STANDALONE=1']) |
39 env.AddNodeToTestSuite(node, ['small_tests'], 'run_imc_shm_mmap_test') | 38 env.AddNodeToTestSuite(node, ['small_tests'], 'run_imc_shm_mmap_test') |
OLD | NEW |