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 test uses ppapi_test_lib. | 6 # This test uses ppapi_test_lib. |
7 | 7 |
8 Import('env') | 8 Import('env') |
9 | 9 |
10 env.Prepend(CPPDEFINES=['XP_UNIX']) | 10 env.Prepend(CPPDEFINES=['XP_UNIX']) |
| 11 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' + |
| 12 'ppb_file_io') |
11 | 13 |
12 nexe = 'ppapi_ppb_file_io_%s' % env.get('TARGET_FULLARCH') | 14 nexe = 'ppapi_ppb_file_io_%s' % env.get('TARGET_FULLARCH') |
13 env.Alias('ppapi_ppb_file_io${PROGSUFFIX}', | 15 env.Alias('ppapi_ppb_file_io${PROGSUFFIX}', |
14 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) | 16 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
15 | 17 |
16 env.ComponentProgram(nexe, | 18 env.ComponentProgram(nexe, |
17 ['common.cc', | 19 ['common.cc', |
18 'test_open.cc', | 20 'test_open.cc', |
19 'test_read.cc', | 21 'test_read.cc', |
20 'test_query.cc', | 22 'test_query.cc', |
21 'test_sequence_element.cc', | 23 'test_sequence_element.cc', |
22 'ppapi_ppb_file_io.cc'], | 24 'ppapi_ppb_file_io.cc'], |
23 EXTRA_LIBS=['${PPAPI_LIBS}', | 25 EXTRA_LIBS=['${PPAPI_LIBS}', |
24 'ppapi_test_lib', | 26 'ppapi_test_lib', |
25 'platform', | 27 'platform', |
26 'pthread', | 28 'pthread', |
27 'gio']) | 29 'gio']) |
28 | 30 |
29 env.Publish(nexe, 'run', | 31 env.Publish(nexe, 'run', |
30 ['ppapi_ppb_file_io.html', | 32 ['ppapi_ppb_file_io.html', |
31 'ppapi_ppb_file_io.nmf', | |
32 'ppapi_ppb_file_io.js']) | 33 'ppapi_ppb_file_io.js']) |
33 | 34 |
34 node = env.PPAPIBrowserTester('ppapi_ppb_file_io_browser_test.out', | 35 node = env.PPAPIBrowserTester('ppapi_ppb_file_io_browser_test.out', |
35 url='ppapi_ppb_file_io.html', | 36 url='ppapi_ppb_file_io.html', |
| 37 nmf='${TEST_DIR}/ppapi_ppb_file_io.nmf', |
36 browser_flags=['--unlimited-quota-for-files'], | 38 browser_flags=['--unlimited-quota-for-files'], |
37 files=env.ExtractPublishedFiles(nexe)) | 39 files=env.ExtractPublishedFiles(nexe)) |
38 | 40 |
39 env.AddNodeToTestSuite(node, | 41 env.AddNodeToTestSuite(node, |
40 ['chrome_browser_tests'], | 42 ['chrome_browser_tests'], |
41 'run_ppapi_ppb_file_io_browser_test', | 43 'run_ppapi_ppb_file_io_browser_test', |
42 is_broken=env.PPAPIBrowserTesterIsBroken()) | 44 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |