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 env.ComponentProgram('nameservice_test.nexe', | 8 env.ComponentProgram('nameservice_test.nexe', |
9 'nameservice_test.c', | 9 'nameservice_test.c', |
10 EXTRA_LIBS=['srpc', 'imc_syscalls', | 10 EXTRA_LIBS=['srpc', 'imc_syscalls', |
11 'platform', 'gio', 'pthread']) | 11 'platform', 'gio', 'pthread']) |
12 node = env.CommandSelLdrTestNacl( | 12 node = env.CommandSelLdrTestNacl( |
13 'nameservice_test.out', | 13 'nameservice_test.out', |
14 command=[env.File('nameservice_test.nexe')]) | 14 command=[env.File('nameservice_test.nexe')]) |
15 env.AddNodeToTestSuite(node, ['small_tests'], 'run_nameservice_test') | 15 env.AddNodeToTestSuite(node, ['small_tests'], 'run_nameservice_test') |
| 16 |
| 17 srpc_ns_obj = env.ComponentObject('srpc_nameservice_test.o', |
| 18 'srpc_nameservice_test.c') |
| 19 srpc_ns_nexe_name = 'srpc_nameservice_test_%s.nexe' % env.get('TARGET_FULLARCH') |
| 20 srpc_ns_nexe = env.ComponentProgram(srpc_ns_nexe_name, |
| 21 srpc_ns_obj, |
| 22 EXTRA_LIBS=[ |
| 23 'srpc', |
| 24 'platform', |
| 25 'gio', |
| 26 'imc', |
| 27 'imc_syscalls', |
| 28 'pthread', |
| 29 '${NON_PPAPI_BROWSER_LIBS}']) |
| 30 env.Publish(srpc_ns_nexe_name, 'run', |
| 31 ['srpc_nameservice_test.html', |
| 32 'srpc_nameservice.nmf']) |
| 33 |
| 34 env.AddPrebuiltBinaryToRepository(srpc_ns_nexe) |
| 35 |
| 36 # chrome_browser_tests |
| 37 |
| 38 node = env.PPAPIBrowserTester( |
| 39 'srpc_ns_browser_test.out', |
| 40 url='srpc_nameservice_test.html', |
| 41 files=env.ExtractPublishedFiles(srpc_ns_nexe_name), |
| 42 args=['--debug', '--enable_experimental_js']) |
| 43 |
| 44 env.AddNodeToTestSuite(node, |
| 45 ['chrome_browser_tests'], |
| 46 'run_srpc_nameservice_chrome_browser_test', |
| 47 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |