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 # 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 env.AddNodeToTestSuite(node, | 72 env.AddNodeToTestSuite(node, |
73 ['chrome_browser_tests'], | 73 ['chrome_browser_tests'], |
74 'run_ppapi_bad_browser_test', | 74 'run_ppapi_bad_browser_test', |
75 is_broken=env.PPAPIBrowserTesterIsBroken() or | 75 is_broken=env.PPAPIBrowserTesterIsBroken() or |
76 env.Bit('host_windows') or | 76 env.Bit('host_windows') or |
77 env.Bit('running_on_valgrind')) | 77 env.Bit('running_on_valgrind')) |
78 | 78 |
79 | 79 |
80 # Bad nexe tests that won't work in PNaCl (native) | 80 # Bad nexe tests that won't work in PNaCl (native) |
81 # For example, partly_invalid.nexe has inline assembly in its source files. | 81 # For example, partly_invalid.nexe has inline assembly in its source files. |
| 82 # Just bail out here for PNaCl, since the NMF will require the .nexe |
| 83 # to be built. |
| 84 if env.Bit('bitcode'): |
| 85 Return() |
| 86 |
82 nacltest_js = env.File('${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/' + | 87 nacltest_js = env.File('${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/' + |
83 'nacltest.js') | 88 'nacltest.js') |
84 partly_invalid = env.File('${STAGING_DIR}/partly_invalid${PROGSUFFIX}') | 89 partly_invalid = env.File('${STAGING_DIR}/partly_invalid${PROGSUFFIX}') |
85 nmf = '${TEST_DIR}/partly_invalid.nmf' | 90 nmf = '${TEST_DIR}/partly_invalid.nmf' |
86 if not env.Bit('nacl_glibc'): | 91 if not env.Bit('nacl_glibc'): |
87 ppapi_bad_native_files = [ | 92 ppapi_bad_native_files = [ |
88 env.File('ppapi_bad_native.html'), | 93 env.File('ppapi_bad_native.html'), |
89 env.File('${SCONSTRUCT_DIR}/tests/ppapi_browser/progress_events/' + | 94 env.File('${SCONSTRUCT_DIR}/tests/ppapi_browser/progress_events/' + |
90 'ppapi_progress_events.js'), | 95 'ppapi_progress_events.js'), |
91 nacltest_js] | 96 nacltest_js] |
(...skipping 21 matching lines...) Expand all Loading... |
113 nmfs=[nmf], | 118 nmfs=[nmf], |
114 files=ppapi_bad_native_files, | 119 files=ppapi_bad_native_files, |
115 nacl_exe_stderr={ | 120 nacl_exe_stderr={ |
116 'file': '${TARGET_ROOT}/test_results/ppapi_bad_native_test.log', | 121 'file': '${TARGET_ROOT}/test_results/ppapi_bad_native_test.log', |
117 'golden': '${TEST_DIR}/ppapi_bad_native_glibc.stderr'} | 122 'golden': '${TEST_DIR}/ppapi_bad_native_glibc.stderr'} |
118 ) | 123 ) |
119 | 124 |
120 env.AddNodeToTestSuite(node, | 125 env.AddNodeToTestSuite(node, |
121 ['chrome_browser_tests'], | 126 ['chrome_browser_tests'], |
122 'run_ppapi_bad_native_test', | 127 'run_ppapi_bad_native_test', |
123 is_broken=env.PPAPIBrowserTesterIsBroken() or | 128 is_broken=env.PPAPIBrowserTesterIsBroken()) |
124 env.Bit('bitcode')) | |
OLD | NEW |