| 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.nexe' % platform | 9 cat_nexe_name = 'cat_%s${PROGSUFFIX}' % platform |
| 10 ppapi_basic_object_nexe_name = 'ppapi_basic_object_%s.nexe' % platform | 10 ppapi_basic_object_nexe_name = 'ppapi_basic_object_%s${PROGSUFFIX}' % platform |
| 11 ppapi_event_example_nexe_name = 'ppapi_event_example_%s.nexe' % platform | 11 ppapi_event_example_nexe_name = 'ppapi_event_example_%s${PROGSUFFIX}' % platform |
| 12 ppapi_user_main_nexe_name = 'ppapi_user_main_%s.nexe' % platform | 12 ppapi_user_main_nexe_name = 'ppapi_user_main_%s${PROGSUFFIX}' % platform |
| 13 srpc_test_nexe_name = 'srpc_test_%s.nexe' % platform | 13 srpc_test_nexe_name = 'srpc_test_%s${PROGSUFFIX}' % platform |
| 14 srpc_hw_nexe_name = 'srpc_hw_%s.nexe' % platform | 14 srpc_hw_nexe_name = 'srpc_hw_%s${PROGSUFFIX}' % platform |
| 15 srpc_nrd_client_nexe_name = 'srpc_nrd_client_%s.nexe' % platform | 15 srpc_nrd_client_nexe_name = 'srpc_nrd_client_%s${PROGSUFFIX}' % platform |
| 16 srpc_nrd_server_nexe_name = 'srpc_nrd_server_%s.nexe' % platform | 16 srpc_nrd_server_nexe_name = 'srpc_nrd_server_%s${PROGSUFFIX}' % platform |
| 17 | 17 |
| 18 def CreateDefaultDeps(base_name): | 18 def CreateDefaultDeps(base_name): |
| 19 return [env.File('${STAGING_DIR}/' + base_name + '_%s.nexe' % platform), | 19 return [env.File('${STAGING_DIR}/' + base_name + '_%s${PROGSUFFIX}' % platform
), |
| 20 env.File('${STAGING_DIR}/' + base_name + '.html'), | 20 env.File('${STAGING_DIR}/' + base_name + '.html'), |
| 21 env.File('${STAGING_DIR}/' + base_name + '.nmf')] | 21 env.File('${STAGING_DIR}/' + base_name + '.nmf')] |
| 22 | 22 |
| 23 basic_object_files = [ | 23 basic_object_files = [ |
| 24 env.File('${STAGING_DIR}/' + ppapi_basic_object_nexe_name), | 24 env.File('${STAGING_DIR}/' + ppapi_basic_object_nexe_name), |
| 25 env.File('${STAGING_DIR}/basic_object.html'), | 25 env.File('${STAGING_DIR}/basic_object.html'), |
| 26 env.File('${STAGING_DIR}/basic_object.nmf'), | 26 env.File('${STAGING_DIR}/basic_object.nmf'), |
| 27 env.File('${STAGING_DIR}/' + ppapi_user_main_nexe_name), | 27 env.File('${STAGING_DIR}/' + ppapi_user_main_nexe_name), |
| 28 env.File('${STAGING_DIR}/user_main.nmf')] | 28 env.File('${STAGING_DIR}/user_main.nmf')] |
| 29 earth_c_files = CreateDefaultDeps('earth_c') | 29 earth_c_files = CreateDefaultDeps('earth_c') |
| 30 earth_cc_files = CreateDefaultDeps('earth_cc') | 30 earth_cc_files = CreateDefaultDeps('earth_cc') |
| 31 event_example_files = [ | 31 event_example_files = [ |
| 32 env.File('${STAGING_DIR}/' + ppapi_event_example_nexe_name), | 32 env.File('${STAGING_DIR}/' + ppapi_event_example_nexe_name), |
| 33 env.File('${STAGING_DIR}/event_example.html'), | 33 env.File('${STAGING_DIR}/event_example.html'), |
| 34 env.File('${STAGING_DIR}/event_example.nmf')] | 34 env.File('${STAGING_DIR}/event_example.nmf')] |
| 35 ppapi_core_files = CreateDefaultDeps('ppapi_core') | 35 ppapi_core_files = CreateDefaultDeps('ppapi_core') |
| 36 ppapi_file_system_files = CreateDefaultDeps('ppapi_file_system') | 36 ppapi_file_system_files = CreateDefaultDeps('ppapi_file_system') |
| 37 ppapi_geturl_files = CreateDefaultDeps('ppapi_geturl') + [ | 37 ppapi_geturl_files = CreateDefaultDeps('ppapi_geturl') + [ |
| 38 env.File('${STAGING_DIR}/ppapi_geturl_success.html')] | 38 env.File('${STAGING_DIR}/ppapi_geturl_success.html')] |
| 39 ppapi_example_2d_files = CreateDefaultDeps('ppapi_example_2d') | 39 ppapi_example_2d_files = CreateDefaultDeps('ppapi_example_2d') |
| 40 ppapi_example_audio_files = CreateDefaultDeps('ppapi_example_audio') | 40 ppapi_example_audio_files = CreateDefaultDeps('ppapi_example_audio') |
| 41 ppapi_ppb_graphics2d_files = CreateDefaultDeps('ppapi_ppb_graphics2d') | 41 ppapi_ppb_graphics2d_files = CreateDefaultDeps('ppapi_ppb_graphics2d') |
| 42 ppapi_progress_events_files = CreateDefaultDeps('ppapi_progress_events') + [ | 42 ppapi_progress_events_files = CreateDefaultDeps('ppapi_progress_events') + [ |
| 43 env.File('${STAGING_DIR}/ppapi_progress_events.js')] | 43 env.File('${STAGING_DIR}/ppapi_progress_events.js')] |
| 44 ppapi_test_example_files = CreateDefaultDeps('ppapi_test_example') | 44 ppapi_test_example_files = CreateDefaultDeps('ppapi_test_example') |
| 45 ppapi_tests_files = [ | 45 ppapi_tests_files = [ |
| 46 env.File('${STAGING_DIR}/ppapi_tests_%s.nexe' % platform), | 46 env.File('${STAGING_DIR}/ppapi_tests_%s${PROGSUFFIX}' % platform), |
| 47 env.Dir('${STAGING_DIR}/test_url_loader_data/'), | 47 env.Dir('${STAGING_DIR}/test_url_loader_data/'), |
| 48 env.File('${STAGING_DIR}/test_case.html'), | 48 env.File('${STAGING_DIR}/test_case.html'), |
| 49 env.File('${STAGING_DIR}/test_case.nmf'), | 49 env.File('${STAGING_DIR}/test_case.nmf'), |
| 50 env.File('${STAGING_DIR}/test_page.css')] | 50 env.File('${STAGING_DIR}/test_page.css')] |
| 51 srpc_basic_files = [ | 51 srpc_basic_files = [ |
| 52 env.File('${STAGING_DIR}/' + srpc_test_nexe_name), | 52 env.File('${STAGING_DIR}/' + srpc_test_nexe_name), |
| 53 env.File('${STAGING_DIR}/srpc_basic.html'), | 53 env.File('${STAGING_DIR}/srpc_basic.html'), |
| 54 env.File('${STAGING_DIR}/srpc_test.nmf')] | 54 env.File('${STAGING_DIR}/srpc_test.nmf')] |
| 55 srpc_nrd_xfer_files = [ | 55 srpc_nrd_xfer_files = [ |
| 56 env.File('${STAGING_DIR}/' + srpc_nrd_client_nexe_name), | 56 env.File('${STAGING_DIR}/' + srpc_nrd_client_nexe_name), |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 # multiple_nexes.py | 139 # multiple_nexes.py |
| 140 node = env.PyAutoTester( | 140 node = env.PyAutoTester( |
| 141 'pyauto_multiple_nexes.out', | 141 'pyauto_multiple_nexes.out', |
| 142 env.File('multiple_nexes.py'), | 142 env.File('multiple_nexes.py'), |
| 143 files=core_test_files, | 143 files=core_test_files, |
| 144 extra_chrome_flags=['--enable-pepper-testing']) | 144 extra_chrome_flags=['--enable-pepper-testing']) |
| 145 env.AddNodeToTestSuite(node, | 145 env.AddNodeToTestSuite(node, |
| 146 ['pyauto_tests'], | 146 ['pyauto_tests'], |
| 147 'run_pyauto_multiple_nexes_test', | 147 'run_pyauto_multiple_nexes_test', |
| 148 is_broken=env.PyAutoTesterIsBroken()) | 148 is_broken=env.PyAutoTesterIsBroken()) |
| OLD | NEW |