| 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 srpc_hw_obj = env.ComponentObject('srpc_hw.o', 'srpc_hw.c') | 8 srpc_hw_obj = env.ComponentObject('srpc_hw.o', 'srpc_hw.c') |
| 9 srpc_hw_nexe_name = 'srpc_hw_%s.nexe' % env.get('TARGET_FULLARCH') | 9 srpc_hw_nexe_name = 'srpc_hw_%s' % env.get('TARGET_FULLARCH') |
| 10 srpc_hw_nexe = env.ComponentProgram(srpc_hw_nexe_name, | 10 srpc_hw_nexe = env.ComponentProgram(srpc_hw_nexe_name, |
| 11 srpc_hw_obj, | 11 srpc_hw_obj, |
| 12 EXTRA_LIBS=[ | 12 EXTRA_LIBS=[ |
| 13 'srpc', | 13 'srpc', |
| 14 'platform', | 14 'platform', |
| 15 'gio', | 15 'gio', |
| 16 'imc', | 16 'imc', |
| 17 'imc_syscalls', | 17 'imc_syscalls', |
| 18 'pthread', | 18 'pthread', |
| 19 '${NON_PPAPI_BROWSER_LIBS}']) | 19 '${NON_PPAPI_BROWSER_LIBS}']) |
| 20 # srpc_hw_undecorated is necessary because srpc_hw_fd.html makes use of | 20 # srpc_hw_undecorated is necessary because srpc_hw_fd.html makes use of |
| 21 # __urlAsNaClDesc with a nexe name. | 21 # __urlAsNaClDesc with a nexe name. |
| 22 # TODO(sehr): We can get rid of this hack if we make that API take a manifest | 22 # TODO(sehr): We can get rid of this hack if we make that API take a manifest |
| 23 # file, but it is currently planned for obsoletion also. | 23 # file, but it is currently planned for obsoletion also. |
| 24 srpc_hw_undecorated = env.ComponentProgram('srpc_hw.nexe', | 24 srpc_hw_undecorated = env.ComponentProgram('srpc_hw', |
| 25 srpc_hw_obj, | 25 srpc_hw_obj, |
| 26 EXTRA_LIBS=[ | 26 EXTRA_LIBS=[ |
| 27 'srpc', | 27 'srpc', |
| 28 'platform', | 28 'platform', |
| 29 'gio', | 29 'gio', |
| 30 'imc', | 30 'imc', |
| 31 'imc_syscalls', | 31 'imc_syscalls', |
| 32 'pthread', | 32 'pthread', |
| 33 '${NON_PPAPI_BROWSER_LIBS}']) | 33 '${NON_PPAPI_BROWSER_LIBS}']) |
| 34 | 34 |
| 35 env.Publish(srpc_hw_nexe_name, 'run', | 35 env.Publish(srpc_hw_nexe_name, 'run', |
| 36 ['srpc_hw.html', | 36 ['srpc_hw.html', |
| 37 'srpc_hw.nmf', | 37 'srpc_hw.nmf', |
| 38 'srpc_hw_data.html', | 38 'srpc_hw_data.html', |
| 39 'srpc_hw_fd.html', | 39 'srpc_hw_fd.html', |
| 40 srpc_hw_undecorated]) | 40 srpc_hw_undecorated]) |
| 41 | 41 |
| 42 env.AddPrebuiltBinaryToRepository(srpc_hw_nexe) | 42 env.AddPrebuiltBinaryToRepository(srpc_hw_nexe) |
| 43 | 43 |
| 44 node = env.SelUniversalTest( | 44 node = env.SelUniversalTest( |
| 45 'srpc_hw_test.out', | 45 'srpc_hw_test.out', |
| 46 srpc_hw_nexe, |
| 46 sel_universal_flags=['--command_file', env.File('srpc_hw_test.stdin')], | 47 sel_universal_flags=['--command_file', env.File('srpc_hw_test.stdin')], |
| 47 command=[srpc_hw_nexe], | |
| 48 stdout_golden=env.File('srpc_hw_test.stdout'), | 48 stdout_golden=env.File('srpc_hw_test.stdout'), |
| 49 ) | 49 ) |
| 50 env.AddNodeToTestSuite(node, | 50 env.AddNodeToTestSuite(node, |
| 51 ['small_tests'], | 51 ['small_tests'], |
| 52 'run_srpc_hw_test') | 52 'run_srpc_hw_test') |
| 53 | 53 |
| 54 # chrome_browser_tests | 54 # chrome_browser_tests |
| 55 | 55 |
| 56 node = env.PPAPIBrowserTester( | 56 node = env.PPAPIBrowserTester( |
| 57 'srpc_hw_browser_test.out', | 57 'srpc_hw_browser_test.out', |
| (...skipping 23 matching lines...) Expand all Loading... |
| 81 'srpc_hw_fd_browser_test.out', | 81 'srpc_hw_fd_browser_test.out', |
| 82 url='srpc_hw_fd.html', | 82 url='srpc_hw_fd.html', |
| 83 files=env.ExtractPublishedFiles(srpc_hw_nexe_name), | 83 files=env.ExtractPublishedFiles(srpc_hw_nexe_name), |
| 84 args=['--debug', '--enable_experimental_js']) | 84 args=['--debug', '--enable_experimental_js']) |
| 85 | 85 |
| 86 env.AddNodeToTestSuite(node, | 86 env.AddNodeToTestSuite(node, |
| 87 ['chrome_browser_tests'], | 87 ['chrome_browser_tests'], |
| 88 'run_srpc_hw_fd_chrome_browser_test', | 88 'run_srpc_hw_fd_chrome_browser_test', |
| 89 is_flaky=True, # Don't subject Chrome to our problems. | 89 is_flaky=True, # Don't subject Chrome to our problems. |
| 90 is_broken=env.PPAPIBrowserTesterIsBroken()) | 90 is_broken=env.PPAPIBrowserTesterIsBroken()) |
| OLD | NEW |