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 # This is a C PPAPI | 6 # This is a C PPAPI |
7 # | 7 # |
8 # ppapi_messaging.html - test driver that loads the nexe and scripts it | 8 # ppapi_messaging.html - test driver that loads the nexe and scripts it |
9 # ppapi_messaging.nmf - manifest file for serving platform specific nexe binary. | 9 # ppapi_messaging.nmf - manifest file for serving platform specific nexe binary. |
10 # | 10 # |
11 # ppapi_messaging.c - implementation of PPP interface and PPP_Instance | 11 # ppapi_messaging.c - implementation of PPP interface and PPP_Instance |
12 | 12 |
13 Import('env') | 13 Import('env') |
14 | 14 |
15 env.Prepend(CPPDEFINES=['XP_UNIX']) | 15 env.Prepend(CPPDEFINES=['XP_UNIX']) |
| 16 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' + |
| 17 'ppapi_messaging/') |
16 | 18 |
17 nexe = 'ppapi_messaging_%s' % env.get('TARGET_FULLARCH') | 19 nexe = 'ppapi_messaging_%s' % env.get('TARGET_FULLARCH') |
18 | 20 |
19 env.Alias('ppapi_messaging${PROGSUFFIX}', | 21 env.Alias('ppapi_messaging${PROGSUFFIX}', |
20 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) | 22 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
21 | 23 |
22 ppapi_messaging_nexe = env.ComponentProgram(nexe, | 24 ppapi_messaging_nexe = env.ComponentProgram(nexe, |
23 ['ppapi_messaging.c'], | 25 ['ppapi_messaging.c'], |
24 EXTRA_LIBS=['${PPAPI_LIBS}', | 26 EXTRA_LIBS=['${PPAPI_LIBS}', |
25 'platform', | 27 'platform', |
26 'gio', | 28 'gio', |
27 'pthread', | 29 'pthread', |
28 'm', | 30 'm', |
29 ]) | 31 ]) |
30 | 32 |
31 # Note that the html is required to run this program. | 33 # Note that the html is required to run this program. |
32 dest_copy = env.Replicate('$STAGING_DIR', | 34 dest_copy = env.Replicate('$STAGING_DIR', |
33 ['ppapi_messaging.html', | 35 ['ppapi_messaging.html', |
34 'ppapi_messaging.nmf', | |
35 env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' | 36 env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' |
36 'browserdata/nacltest.js')] | 37 'browserdata/nacltest.js')] |
37 ) | 38 ) |
38 env.Depends(nexe, dest_copy) | 39 env.Depends(nexe, dest_copy) |
39 | 40 |
40 node = env.PPAPIBrowserTester('ppapi_messaging_browser_test.out', | 41 node = env.PPAPIBrowserTester('ppapi_messaging_browser_test.out', |
41 url='ppapi_messaging.html', | 42 url='ppapi_messaging.html', |
| 43 nmf='${TEST_DIR}/ppapi_messaging.nmf', |
42 files=[ppapi_messaging_nexe, | 44 files=[ppapi_messaging_nexe, |
43 env.File('ppapi_messaging.nmf'), | 45 env.File('ppapi_messaging.nmf'), |
44 env.File('ppapi_messaging.html')]) | 46 env.File('ppapi_messaging.html')]) |
45 | 47 |
46 env.AddNodeToTestSuite(node, | 48 env.AddNodeToTestSuite(node, |
47 ['chrome_browser_tests'], | 49 ['chrome_browser_tests'], |
48 'run_ppapi_messaging_browser_test', | 50 'run_ppapi_messaging_browser_test', |
49 is_broken=env.PPAPIBrowserTesterIsBroken()) | 51 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |