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_dev') |
11 | 13 |
12 nexe = 'ppapi_ppb_dev_${TARGET_FULLARCH}' | 14 nexe = 'ppapi_ppb_dev_${TARGET_FULLARCH}' |
13 env.Alias('ppapi_ppb_dev${PROGSUFFIX}', | 15 env.Alias('ppapi_ppb_dev${PROGSUFFIX}', |
14 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) | 16 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
15 | 17 |
16 env.ComponentProgram( | 18 env.ComponentProgram( |
17 nexe, | 19 nexe, |
18 ['ppapi_ppb_dev.cc'], | 20 ['ppapi_ppb_dev.cc'], |
19 EXTRA_LIBS=['${PPAPI_LIBS}', | 21 EXTRA_LIBS=['${PPAPI_LIBS}', |
20 'ppapi_test_lib', | 22 'ppapi_test_lib', |
21 'platform', # for CHECK | 23 'platform', # for CHECK |
22 'pthread', | 24 'pthread', |
23 'gio', | 25 'gio', |
24 ]) | 26 ]) |
25 | 27 |
26 env.Publish(nexe, 'run', | 28 env.Publish(nexe, 'run', |
27 [ 'ppapi_ppb_dev.html', | 29 [ 'ppapi_ppb_dev.html', |
28 'ppapi_ppb_dev.nmf', | |
29 env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' | 30 env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' |
30 'browserdata/nacltest.js') ]) | 31 'browserdata/nacltest.js') ]) |
31 | 32 |
32 node = env.PPAPIBrowserTester('ppapi_ppb_dev_browser_test.out', | 33 node = env.PPAPIBrowserTester('ppapi_ppb_dev_browser_test.out', |
33 url='ppapi_ppb_dev.html', | 34 url='ppapi_ppb_dev.html', |
| 35 nmf='${TEST_DIR}/ppapi_ppb_dev.nmf', |
34 files=env.ExtractPublishedFiles(nexe), | 36 files=env.ExtractPublishedFiles(nexe), |
35 args=['--enable_ppapi_dev=0']) | 37 args=['--enable_ppapi_dev=0']) |
36 | 38 |
37 env.AddNodeToTestSuite(node, | 39 env.AddNodeToTestSuite(node, |
38 ['chrome_browser_tests'], | 40 ['chrome_browser_tests'], |
39 'run_ppapi_ppb_dev_browser_test', | 41 'run_ppapi_ppb_dev_browser_test', |
40 is_broken=env.PPAPIBrowserTesterIsBroken()) | 42 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |