| 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 platform | 6 import platform |
| 7 import re # For StripArchFromLDCommand hack. | 7 import re # For StripArchFromLDCommand hack. |
| 8 import os.path # For getting basenames. | 8 import os.path # For getting basenames. |
| 9 | 9 |
| 10 Import('env') | 10 Import('env') |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 map_files=map_files_toolchain + map_files_page, | 160 map_files=map_files_toolchain + map_files_page, |
| 161 args=['--prefer_portable_in_manifest']) | 161 args=['--prefer_portable_in_manifest']) |
| 162 | 162 |
| 163 # Make sure the files are actually staged when this test runs. | 163 # Make sure the files are actually staged when this test runs. |
| 164 env.Depends(node, replicates_toolchain + replicates_page) | 164 env.Depends(node, replicates_toolchain + replicates_page) |
| 165 | 165 |
| 166 bitcode_env.AddNodeToTestSuite(node, | 166 bitcode_env.AddNodeToTestSuite(node, |
| 167 ['chrome_browser_tests'], | 167 ['chrome_browser_tests'], |
| 168 'run_pnacl_example_browser_test', | 168 'run_pnacl_example_browser_test', |
| 169 is_broken=( | 169 is_broken=( |
| 170 bitcode_env.PPAPIBrowserTesterIsBroken())) | 170 bitcode_env.PPAPIBrowserTesterIsBroken() or |
| 171 # Re-enable when coordinator uses shim |
| 172 # and toolchain tarball has real shim. |
| 173 bitcode_env.Bit('target_x86_64'))) |
| 171 | 174 |
| 172 #### Test error handling. | 175 #### Test error handling. |
| 173 | 176 |
| 174 # We should add more cases, e.g., try a bad library to crash ld, | 177 # We should add more cases, e.g., try a bad library to crash ld, |
| 175 # try a more malicious bitcode, try to exhaust resources, etc. | 178 # try a more malicious bitcode, try to exhaust resources, etc. |
| 176 # The current llc tests, don't actually crash LLC, they only | 179 # The current llc tests, don't actually crash LLC, they only |
| 177 # make llc exit w/ an abnormal status. | 180 # make llc exit w/ an abnormal status. |
| 178 | 181 |
| 179 (map_files_bad_page, replicates_bad_page) = LayoutPageAssetsOnServer( | 182 (map_files_bad_page, replicates_bad_page) = LayoutPageAssetsOnServer( |
| 180 ['pnacl_bad_doesnotexist.nmf', | 183 ['pnacl_bad_doesnotexist.nmf', |
| (...skipping 25 matching lines...) Expand all Loading... |
| 206 map_files=map_files_toolchain + map_files_bad_page, | 209 map_files=map_files_toolchain + map_files_bad_page, |
| 207 args=['--allow_404', '--prefer_portable_in_manifest']) | 210 args=['--allow_404', '--prefer_portable_in_manifest']) |
| 208 | 211 |
| 209 # Make sure the files are actually staged when this test runs. | 212 # Make sure the files are actually staged when this test runs. |
| 210 env.Depends(node, replicates_toolchain + replicates_bad_page) | 213 env.Depends(node, replicates_toolchain + replicates_bad_page) |
| 211 | 214 |
| 212 bitcode_env.AddNodeToTestSuite(node, | 215 bitcode_env.AddNodeToTestSuite(node, |
| 213 ['chrome_browser_tests'], | 216 ['chrome_browser_tests'], |
| 214 'run_pnacl_bad_browser_test', | 217 'run_pnacl_bad_browser_test', |
| 215 is_broken=( | 218 is_broken=( |
| 216 bitcode_env.PPAPIBrowserTesterIsBroken())) | 219 bitcode_env.PPAPIBrowserTesterIsBroken() or |
| 220 # Re-enable when coordinator uses shim |
| 221 # and toolchain tarball has real shim. |
| 222 bitcode_env.Bit('target_x86_64'))) |
| OLD | NEW |