OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2011 The Native Client Authors. All rights reserved. | 2 # Copyright 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
5 | 5 |
6 Import('env') | 6 Import('env') |
7 | 7 |
8 platform = env.get('TARGET_FULLARCH') | 8 platform = env.get('TARGET_FULLARCH') |
9 cat_nexe_name = 'cat_%s${PROGSUFFIX}' % platform | 9 cat_nexe_name = 'cat_%s${PROGSUFFIX}' % platform |
10 ppapi_basic_object_nexe_name = 'ppapi_basic_object_%s${PROGSUFFIX}' % platform | |
11 ppapi_example_events_nexe_name = 'ppapi_example_events_%s${PROGSUFFIX}' % platfo
rm | 10 ppapi_example_events_nexe_name = 'ppapi_example_events_%s${PROGSUFFIX}' % platfo
rm |
12 ppapi_user_main_nexe_name = 'ppapi_user_main_%s${PROGSUFFIX}' % platform | 11 ppapi_user_main_nexe_name = 'ppapi_user_main_%s${PROGSUFFIX}' % platform |
13 srpc_test_nexe_name = 'srpc_test_%s${PROGSUFFIX}' % platform | 12 srpc_test_nexe_name = 'srpc_test_%s${PROGSUFFIX}' % platform |
14 srpc_hw_nexe_name = 'srpc_hw_%s${PROGSUFFIX}' % platform | 13 srpc_hw_nexe_name = 'srpc_hw_%s${PROGSUFFIX}' % platform |
15 srpc_nrd_client_nexe_name = 'srpc_nrd_client_%s${PROGSUFFIX}' % platform | 14 srpc_nrd_client_nexe_name = 'srpc_nrd_client_%s${PROGSUFFIX}' % platform |
16 srpc_nrd_server_nexe_name = 'srpc_nrd_server_%s${PROGSUFFIX}' % platform | 15 srpc_nrd_server_nexe_name = 'srpc_nrd_server_%s${PROGSUFFIX}' % platform |
17 | 16 |
18 def CreateDefaultDeps(base_name): | 17 def CreateDefaultDeps(base_name): |
19 return [env.File('${STAGING_DIR}/' + base_name + '_%s${PROGSUFFIX}' % platform
), | 18 return [env.File('${STAGING_DIR}/' + base_name + '_%s${PROGSUFFIX}' % platform
), |
20 env.File('${STAGING_DIR}/' + base_name + '.html'), | 19 env.File('${STAGING_DIR}/' + base_name + '.html'), |
21 env.File('${STAGING_DIR}/' + base_name + '.nmf')] | 20 env.File('${STAGING_DIR}/' + base_name + '.nmf')] |
22 | 21 |
23 basic_object_files = [ | |
24 env.File('${STAGING_DIR}/' + ppapi_basic_object_nexe_name), | |
25 env.File('${STAGING_DIR}/basic_object.html'), | |
26 env.File('${STAGING_DIR}/basic_object.nmf'), | |
27 env.File('${STAGING_DIR}/' + ppapi_user_main_nexe_name), | |
28 env.File('${STAGING_DIR}/user_main.nmf')] | |
29 earth_c_files = CreateDefaultDeps('earth_c') | 22 earth_c_files = CreateDefaultDeps('earth_c') |
30 earth_cc_files = CreateDefaultDeps('earth_cc') | 23 earth_cc_files = CreateDefaultDeps('earth_cc') |
31 ppapi_example_events_files = [ | 24 ppapi_example_events_files = [ |
32 env.File('${STAGING_DIR}/' + ppapi_example_events_nexe_name), | 25 env.File('${STAGING_DIR}/' + ppapi_example_events_nexe_name), |
33 env.File('${STAGING_DIR}/ppapi_example_events.html'), | 26 env.File('${STAGING_DIR}/ppapi_example_events.html'), |
34 env.File('${STAGING_DIR}/ppapi_example_events.nmf')] | 27 env.File('${STAGING_DIR}/ppapi_example_events.nmf')] |
35 ppapi_geturl_files = CreateDefaultDeps('ppapi_geturl') + [ | 28 ppapi_geturl_files = CreateDefaultDeps('ppapi_geturl') + [ |
36 env.File('${STAGING_DIR}/ppapi_geturl_success.html')] | 29 env.File('${STAGING_DIR}/ppapi_geturl_success.html')] |
37 ppapi_example_2d_files = CreateDefaultDeps('ppapi_example_2d') | 30 ppapi_example_2d_files = CreateDefaultDeps('ppapi_example_2d') |
38 ppapi_example_audio_files = CreateDefaultDeps('ppapi_example_audio') | 31 ppapi_example_audio_files = CreateDefaultDeps('ppapi_example_audio') |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 env.File('${STAGING_DIR}/srpc_url_as_nacl_desc.html')] | 97 env.File('${STAGING_DIR}/srpc_url_as_nacl_desc.html')] |
105 | 98 |
106 # sanity.py | 99 # sanity.py |
107 node = env.PyAutoTester('pyauto_sanity.out', env.File('sanity.py')) | 100 node = env.PyAutoTester('pyauto_sanity.out', env.File('sanity.py')) |
108 env.AddNodeToTestSuite(node, | 101 env.AddNodeToTestSuite(node, |
109 ['pyauto_tests'], | 102 ['pyauto_tests'], |
110 'run_pyauto_sanity_test', | 103 'run_pyauto_sanity_test', |
111 is_broken=env.PyAutoTesterIsBroken()) | 104 is_broken=env.PyAutoTesterIsBroken()) |
112 | 105 |
113 core_test_files = [env.File('${STAGING_DIR}/nacltest.js'), | 106 core_test_files = [env.File('${STAGING_DIR}/nacltest.js'), |
114 basic_object_files + | |
115 earth_c_files + | 107 earth_c_files + |
116 earth_cc_files + | 108 earth_cc_files + |
117 ppapi_example_events_files + | 109 ppapi_example_events_files + |
118 ppapi_example_2d_files + | 110 ppapi_example_2d_files + |
119 ppapi_example_audio_files + | 111 ppapi_example_audio_files + |
120 ppapi_example_font_files + | 112 ppapi_example_font_files + |
121 ppapi_example_gles2_files + | 113 ppapi_example_gles2_files + |
122 ppapi_example_post_message_files + | 114 ppapi_example_post_message_files + |
123 ppapi_geturl_files + | 115 ppapi_geturl_files + |
124 ppapi_gles_book_hello_triangle_files + | 116 ppapi_gles_book_hello_triangle_files + |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 env.File('nacl_uma.py'), | 192 env.File('nacl_uma.py'), |
201 # TODO(ncbray): depend on fewer files. | 193 # TODO(ncbray): depend on fewer files. |
202 files=core_test_files, | 194 files=core_test_files, |
203 extra_chrome_flags=['--enable-pepper-testing']) | 195 extra_chrome_flags=['--enable-pepper-testing']) |
204 # Can't test validation errors (partly_broken) in PNaCl. | 196 # Can't test validation errors (partly_broken) in PNaCl. |
205 env.AddNodeToTestSuite(node, | 197 env.AddNodeToTestSuite(node, |
206 ['pyauto_tests'], | 198 ['pyauto_tests'], |
207 'run_nacl_uma_test', | 199 'run_nacl_uma_test', |
208 is_broken=env.PyAutoTesterIsBroken() or | 200 is_broken=env.PyAutoTesterIsBroken() or |
209 env.Bit('bitcode')) | 201 env.Bit('bitcode')) |
OLD | NEW |