OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 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 re # For StripArchFromLDCommand hack. | 6 import re # For StripArchFromLDCommand hack. |
7 | 7 |
8 Import('env') | 8 Import('env') |
9 | 9 |
10 # Browser tests for the pnacl translator. | 10 # Browser tests for the pnacl translator. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 # Grab test routines. | 65 # Grab test routines. |
66 borrowed_file = '${STAGING_DIR}/ppapi_test_example.js', | 66 borrowed_file = '${STAGING_DIR}/ppapi_test_example.js', |
67 | 67 |
68 env.Publish(pexe_name, | 68 env.Publish(pexe_name, |
69 'run', | 69 'run', |
70 ['pnacl_test_example.html']) | 70 ['pnacl_test_example.html']) |
71 | 71 |
72 node = bitcode_env.PPAPIBrowserTester( | 72 node = bitcode_env.PPAPIBrowserTester( |
73 'pnacl_test_example.out', | 73 'pnacl_test_example.out', |
74 url='pnacl_test_example.html', | 74 url='pnacl_test_example.html', |
75 nmfs=['pnacl_test_example.nmf'], | 75 nmfs=['pnacl_test_example.nmf', |
| 76 'pnacl_test_example2.nmf'], |
76 files=(env.ExtractPublishedFiles(pexe_name, prog_suffix=False) + | 77 files=(env.ExtractPublishedFiles(pexe_name, prog_suffix=False) + |
77 [borrowed_file]), | 78 [borrowed_file]), |
78 args=['--prefer_portable_in_manifest']) | 79 args=['--prefer_portable_in_manifest']) |
79 | 80 |
80 bitcode_env.AddNodeToTestSuite(node, | 81 bitcode_env.AddNodeToTestSuite(node, |
81 ['chrome_browser_tests'], | 82 ['chrome_browser_tests'], |
82 'run_pnacl_example_browser_test', | 83 'run_pnacl_example_browser_test', |
83 is_broken=(is_broken or | 84 is_broken=(is_broken or |
84 bitcode_env.PPAPIBrowserTesterIsBroken())) | 85 bitcode_env.PPAPIBrowserTesterIsBroken())) |
85 | 86 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 # There may also be an issue in that the scons manifest generator is picky | 121 # There may also be an issue in that the scons manifest generator is picky |
121 # about nexes that don't exist. | 122 # about nexes that don't exist. |
122 files=pnacl_bad_files + [borrowed_file], | 123 files=pnacl_bad_files + [borrowed_file], |
123 args=['--allow_404', '--prefer_portable_in_manifest']) | 124 args=['--allow_404', '--prefer_portable_in_manifest']) |
124 | 125 |
125 bitcode_env.AddNodeToTestSuite(node, | 126 bitcode_env.AddNodeToTestSuite(node, |
126 ['chrome_browser_tests'], | 127 ['chrome_browser_tests'], |
127 'run_pnacl_bad_browser_test', | 128 'run_pnacl_bad_browser_test', |
128 is_broken=(is_broken or | 129 is_broken=(is_broken or |
129 bitcode_env.PPAPIBrowserTesterIsBroken())) | 130 bitcode_env.PPAPIBrowserTesterIsBroken())) |
OLD | NEW |