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 Import('env') | 6 Import('env') |
7 | 7 |
8 dest_copy = env.Replicate('${STAGING_DIR}', 'async_messaging.html') | 8 dest_copy = env.Replicate('${STAGING_DIR}', 'async_messaging.html') |
9 env.Replicate('${STAGING_DIR}', | 9 env.Replicate('${STAGING_DIR}', |
10 '${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js') | 10 '${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js') |
11 async_nexe_name = 'async_message_test_%s.nexe' % env.get('TARGET_FULLARCH') | 11 async_nexe_name = 'async_message_test_%s' % env.get('TARGET_FULLARCH') |
12 test_files = [ | 12 test_files = [ |
13 env.File('${STAGING_DIR}/nacltest.js'), | 13 env.File('${STAGING_DIR}/nacltest.js'), |
14 env.File('${STAGING_DIR}/' + async_nexe_name), | 14 env.File('${STAGING_DIR}/%s${PROGSUFFIX}' % async_nexe_name), |
15 ] | 15 ] |
16 # These are not true dependencies: They are not needed for the .html | 16 # These are not true dependencies: They are not needed for the .html |
17 # file to be replicated to "staging", but they are needed for the | 17 # file to be replicated to "staging", but they are needed for the |
18 # .html file to work when run. | 18 # .html file to work when run. |
19 # TODO(mseaborn): Similar logic is duplicated in | 19 # TODO(mseaborn): Similar logic is duplicated in |
20 # tests/inbrowser_test_runner/nacl.scons. Reduce the duplication. | 20 # tests/inbrowser_test_runner/nacl.scons. Reduce the duplication. |
21 env.Depends(dest_copy, test_files) | 21 env.Depends(dest_copy, test_files) |
22 env.Alias('async_messaging.html', dest_copy) | 22 env.Alias('async_messaging.html', dest_copy) |
23 | 23 |
24 node = env.PPAPIBrowserTester( | 24 node = env.PPAPIBrowserTester( |
25 'async_messaging_chrome_browser_test.out', | 25 'async_messaging_chrome_browser_test.out', |
26 url='async_messaging.html', | 26 url='async_messaging.html', |
27 files=[env.File('async_messaging.html'), | 27 files=[env.File('async_messaging.html'), |
28 env.File('async_message_test.nmf')] + test_files, | 28 env.File('async_message_test.nmf')] + test_files, |
29 args=['--enable_experimental_js']) | 29 args=['--enable_experimental_js']) |
30 | 30 |
31 env.AddNodeToTestSuite(node, | 31 env.AddNodeToTestSuite(node, |
32 ['chrome_browser_tests'], | 32 ['chrome_browser_tests'], |
33 'run_async_messaging_test', | 33 'run_async_messaging_test', |
34 is_broken=env.PPAPIBrowserTesterIsBroken()) | 34 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |