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 tests PPB_Memory_Dev. | 6 # This tests PPB_Memory_Dev. |
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_memory') | |
13 | 11 |
14 nexe = 'ppapi_ppb_memory_%s' % env.get('TARGET_FULLARCH') | 12 nexe = 'ppapi_ppb_memory_%s' % env.get('TARGET_FULLARCH') |
15 env.Alias('ppapi_ppb_memory${PROGSUFFIX}', | 13 env.Alias('ppapi_ppb_memory${PROGSUFFIX}', |
16 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) | 14 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
17 | 15 |
18 ppapi_ppb_memory_nexe = env.ComponentProgram( | 16 ppapi_ppb_memory_nexe = env.ComponentProgram( |
19 nexe, | 17 nexe, |
20 ['ppapi_ppb_memory.cc'], | 18 ['ppapi_ppb_memory.cc'], |
21 EXTRA_LIBS=['${PPAPI_LIBS}', | 19 EXTRA_LIBS=['${PPAPI_LIBS}', |
22 'ppapi_test_lib', | 20 'ppapi_test_lib', |
23 'platform', # for CHECK | 21 'platform', # for CHECK |
24 'pthread', | 22 'pthread', |
25 'gio', | 23 'gio', |
26 ]) | 24 ]) |
27 | 25 |
28 env.Publish(nexe, 'run', | 26 env.Publish(nexe, 'run', |
29 ['ppapi_ppb_memory.html']) | 27 ['ppapi_ppb_memory.html', |
| 28 'ppapi_ppb_memory.nmf']) |
30 | 29 |
31 node = env.PPAPIBrowserTester('ppapi_ppb_memory_browser_test.out', | 30 node = env.PPAPIBrowserTester('ppapi_ppb_memory_browser_test.out', |
32 url='ppapi_ppb_memory.html', | 31 url='ppapi_ppb_memory.html', |
33 nmf='${TEST_DIR}/ppapi_ppb_memory.nmf', | |
34 files=env.ExtractPublishedFiles(nexe)) | 32 files=env.ExtractPublishedFiles(nexe)) |
35 | 33 |
36 env.AddNodeToTestSuite(node, | 34 env.AddNodeToTestSuite(node, |
37 ['chrome_browser_tests'], | 35 ['chrome_browser_tests'], |
38 'run_ppapi_ppb_memory_browser_test', | 36 'run_ppapi_ppb_memory_browser_test', |
39 is_broken=env.PPAPIBrowserTesterIsBroken()) | 37 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |