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 # This is a C PPAPI | 6 # This is a C PPAPI |
7 # | 7 # |
8 # ppapi_file_system.html - test driver that loads the nexe | 8 # ppapi_file_system.html - test driver that loads the nexe |
9 # ppapi_file_system.js - set up the test driver | 9 # ppapi_file_system.js - set up the test driver |
10 # ppapi_file_system.nmf - manifest file for serving platform specific nexe binar
y. | 10 # ppapi_file_system.nmf - manifest file for serving platform specific nexe binar
y. |
11 # | 11 # |
12 # ppapi_file_system.cc - implementation of ppapi_test_lib/test_interface.h | 12 # ppapi_file_system.cc - implementation of ppapi_test_lib/test_interface.h |
13 | 13 |
14 Import('env') | 14 Import('env') |
15 | 15 |
16 env.Prepend(CPPDEFINES=['XP_UNIX']) | 16 env.Prepend(CPPDEFINES=['XP_UNIX']) |
17 | 17 |
18 nexe = 'ppapi_file_system_%s.nexe' % env.get('TARGET_FULLARCH') | 18 nexe = 'ppapi_file_system_%s' % env.get('TARGET_FULLARCH') |
19 | 19 |
20 env.Alias('ppapi_file_system.nexe', ['$STAGING_DIR/%s' % nexe]) | 20 env.Alias('ppapi_file_system${PROGSUFFIX}', |
| 21 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
21 | 22 |
22 ppapi_file_system_nexe = env.ComponentProgram(nexe, | 23 ppapi_file_system_nexe = env.ComponentProgram(nexe, |
23 ['ppapi_file_system.cc'], | 24 ['ppapi_file_system.cc'], |
24 EXTRA_LIBS=['${PPAPI_LIBS}', | 25 EXTRA_LIBS=['${PPAPI_LIBS}', |
25 'ppapi_test_lib', | 26 'ppapi_test_lib', |
26 'platform', | 27 'platform', |
27 'gio', | 28 'gio', |
28 'pthread']) | 29 'pthread']) |
29 env.Publish(nexe, 'run', | 30 env.Publish(nexe, 'run', |
30 ['ppapi_file_system.html', | 31 ['ppapi_file_system.html', |
31 'ppapi_file_system.nmf', | 32 'ppapi_file_system.nmf', |
32 'ppapi_file_system.js']) | 33 'ppapi_file_system.js']) |
33 node = env.PPAPIBrowserTester('ppapi_file_system_browser_test.out', | 34 node = env.PPAPIBrowserTester('ppapi_file_system_browser_test.out', |
34 url='ppapi_file_system.html', | 35 url='ppapi_file_system.html', |
35 files=env.ExtractPublishedFiles(nexe), | 36 files=env.ExtractPublishedFiles(nexe), |
36 args=['--enable_experimental_js']) | 37 args=['--enable_experimental_js']) |
37 | 38 |
38 # Disabled for ARM because Chrome binaries for ARM are not available. | 39 # Disabled for ARM because Chrome binaries for ARM are not available. |
39 # TODO(ncbray): Enable this on Windows. | 40 # TODO(ncbray): Enable this on Windows. |
40 tester_is_broken = \ | 41 tester_is_broken = \ |
41 (env.Bit('target_arm') or | 42 (env.Bit('target_arm') or |
42 (env.Bit('host_windows') and | 43 (env.Bit('host_windows') and |
43 not env.Bit('disable_dynamic_plugin_loading'))) | 44 not env.Bit('disable_dynamic_plugin_loading'))) |
44 env.AddNodeToTestSuite(node, | 45 env.AddNodeToTestSuite(node, |
45 ['chrome_browser_tests'], | 46 ['chrome_browser_tests'], |
46 'run_ppapi_file_system_browser_test', | 47 'run_ppapi_file_system_browser_test', |
47 is_broken=tester_is_broken) | 48 is_broken=tester_is_broken) |
OLD | NEW |