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 # Test loading a NaCl-enabled Chrome Extension. | 6 # Test loading a NaCl-enabled Chrome Extension. |
7 | 7 |
8 Import('env') | 8 Import('env') |
9 | 9 |
10 # BUG(adonovan): test is breaking on ARM. Disable in haste... | 10 # BUG(adonovan): test is breaking on ARM. Disable in haste... |
11 if env.Bit('target_arm'): | 11 if env.Bit('target_arm'): |
12 Return() | 12 Return() |
13 | 13 |
14 | 14 |
15 nexe = 'ppapi_test_example_%s.nexe' % env.get('TARGET_FULLARCH') | 15 nexe = 'ppapi_test_example_${TARGET_FULLARCH}${PROGSUFFIX}' |
16 | 16 |
17 # Note: this test uses the nexe, manifest.json, background.html and | 17 # Note: this test uses the nexe, manifest.json, background.html and |
18 # test_bridge.js, but these files are loaded from the disk as part of the | 18 # test_bridge.js, but these files are loaded from the disk as part of the |
19 # installed Chrome extension and not loaded through the tester's web server. | 19 # installed Chrome extension and not loaded through the tester's web server. |
20 # These files need their own install command. | 20 # These files need their own install command. |
21 dest_copy = env.Replicate('$STAGING_DIR/chrome_extension', | 21 dest_copy = env.Replicate('$STAGING_DIR/chrome_extension', |
22 [env.File('$STAGING_DIR/%s' % nexe), | 22 [env.File('$STAGING_DIR/%s' % nexe), |
23 env.File('$STAGING_DIR/ppapi_test_example.nmf'), | 23 env.File('$STAGING_DIR/ppapi_test_example.nmf'), |
24 'background.html', | 24 'background.html', |
25 'manifest.json', | 25 'manifest.json', |
26 'test_bridge.js']) | 26 'test_bridge.js']) |
27 | 27 |
28 node = env.PPAPIBrowserTester( | 28 node = env.PPAPIBrowserTester( |
29 'chrome_extension_test.out', | 29 'chrome_extension_test.out', |
30 url='chrome_extension_test.html', | 30 url='chrome_extension_test.html', |
31 extensions=[env.Dir('$STAGING_DIR/chrome_extension')], | 31 extensions=[env.Dir('$STAGING_DIR/chrome_extension')], |
32 files=[env.File('chrome_extension_test.html')], | 32 files=[env.File('chrome_extension_test.html')], |
33 args=['--enable_experimental_js'] | 33 args=['--enable_experimental_js'] |
34 ) | 34 ) |
35 env.Depends(node, dest_copy) | 35 env.Depends(node, dest_copy) |
36 env.Alias('all_programs', dest_copy) | 36 env.Alias('all_programs', dest_copy) |
37 | 37 |
38 env.AddNodeToTestSuite(node, | 38 env.AddNodeToTestSuite(node, |
39 ['chrome_browser_tests'], | 39 ['chrome_browser_tests'], |
40 'run_chrome_extension_test', | 40 'run_chrome_extension_test', |
41 is_flaky=True, # Don't subject Chrome to our problems. | 41 is_flaky=True, # Don't subject Chrome to our problems. |
42 is_broken=env.PPAPIBrowserTesterIsBroken()) | 42 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |