| 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 # Tests fatal errors that occur during loading. | 6 # Tests fatal errors that occur during loading. |
| 7 # (See ppapi_browser/crash for fatal errors that occur after loading). | 7 # (See ppapi_browser/crash for fatal errors that occur after loading). |
| 8 # TODO(polina): rename the directory and browser test to bad_load | 8 # TODO(polina): rename the directory and browser test to bad_load |
| 9 # | 9 # |
| 10 # Manual testing with localhost:5103/scons-out/.../staging/ppapi_bad.html: | 10 # Manual testing with localhost:5103/scons-out/.../staging/ppapi_bad.html: |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 node = env.PPAPIBrowserTester( | 61 node = env.PPAPIBrowserTester( |
| 62 'ppapi_bad_browser_test.out', | 62 'ppapi_bad_browser_test.out', |
| 63 url='ppapi_bad.html', | 63 url='ppapi_bad.html', |
| 64 nmfs=nmfs, | 64 nmfs=nmfs, |
| 65 files=[env.File(f) for f in ppapi_bad_files], | 65 files=[env.File(f) for f in ppapi_bad_files], |
| 66 args=['--allow_404']) | 66 args=['--allow_404']) |
| 67 | 67 |
| 68 env.AddNodeToTestSuite(node, | 68 env.AddNodeToTestSuite(node, |
| 69 ['chrome_browser_tests'], | 69 ['chrome_browser_tests'], |
| 70 'run_ppapi_bad_browser_test', | 70 'run_ppapi_bad_browser_test', |
| 71 is_broken=env.PPAPIBrowserTesterIsBroken() or | 71 is_broken=env.PPAPIBrowserTesterIsBroken()) |
| 72 env.Bit('nacl_glibc')) | |
| 73 | 72 |
| 74 | 73 |
| 75 # Bad nexe tests that won't work in PNaCl (native) | 74 # Bad nexe tests that won't work in PNaCl (native) |
| 76 # For example, partly_invalid.nexe has inline assembly in its source files. | 75 # For example, partly_invalid.nexe has inline assembly in its source files. |
| 77 ppapi_bad_native_files = [ | 76 ppapi_bad_native_files = [ |
| 78 env.File('ppapi_bad_native.html'), | 77 env.File('ppapi_bad_native.html'), |
| 79 env.File('${SCONSTRUCT_DIR}/tests/ppapi_browser/progress_events/' + | 78 env.File('${SCONSTRUCT_DIR}/tests/ppapi_browser/progress_events/' + |
| 80 'ppapi_progress_events.js'), | 79 'ppapi_progress_events.js'), |
| 81 env.File('${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js') | 80 env.File('${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js') |
| 82 ] | 81 ] |
| 83 replicated_files = env.Replicate('${STAGING_DIR}', ppapi_bad_native_files) | 82 replicated_files = env.Replicate('${STAGING_DIR}', ppapi_bad_native_files) |
| 84 env.Alias('all_programs', replicated_files) | 83 env.Alias('all_programs', replicated_files) |
| 85 | 84 |
| 86 partly_invalid = env.File('${STAGING_DIR}/partly_invalid${PROGSUFFIX}') | 85 partly_invalid = env.File('${STAGING_DIR}/partly_invalid${PROGSUFFIX}') |
| 87 ppapi_bad_native_files.append(partly_invalid) | 86 ppapi_bad_native_files.append(partly_invalid) |
| 88 | 87 |
| 89 node = env.PPAPIBrowserTester( | 88 node = env.PPAPIBrowserTester( |
| 90 'ppapi_bad_native_test.out', | 89 'ppapi_bad_native_test.out', |
| 91 url='ppapi_bad_native.html', | 90 url='ppapi_bad_native.html', |
| 92 nmfs=['${TEST_DIR}/partly_invalid.nmf'], | 91 nmfs=['${TEST_DIR}/partly_invalid.nmf'], |
| 93 files=ppapi_bad_native_files, | 92 files=ppapi_bad_native_files, |
| 94 ) | 93 ) |
| 95 | 94 |
| 96 env.AddNodeToTestSuite(node, | 95 env.AddNodeToTestSuite(node, |
| 97 ['chrome_browser_tests'], | 96 ['chrome_browser_tests'], |
| 98 'run_ppapi_bad_native_test', | 97 'run_ppapi_bad_native_test', |
| 99 is_broken=env.PPAPIBrowserTesterIsBroken() or | 98 is_broken=env.PPAPIBrowserTesterIsBroken() or |
| 100 env.Bit('nacl_glibc') or | 99 env.Bit('nacl_glibc') or |
| 101 env.Bit('bitcode')) | 100 env.Bit('bitcode')) |
| OLD | NEW |