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('env') | 6 Import('env') |
7 | 7 |
8 if 'TRUSTED_ENV' not in env: | 8 if 'TRUSTED_ENV' not in env: |
9 Return() | 9 Return() |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 # The variables are set up. TODO(dschuff): fix as described in bug. | 118 # The variables are set up. TODO(dschuff): fix as described in bug. |
119 # http://code.google.com/p/nativeclient/issues/detail?id=3255 | 119 # http://code.google.com/p/nativeclient/issues/detail?id=3255 |
120 # This fails on ARM+PNaCl because it is reading | 120 # This fails on ARM+PNaCl because it is reading |
121 # local_var before it has been initialised. | 121 # local_var before it has been initialised. |
122 # TODO(mseaborn): Investigate and enable this test. | 122 # TODO(mseaborn): Investigate and enable this test. |
123 # http://code.google.com/p/nativeclient/issues/detail?id=3252 | 123 # http://code.google.com/p/nativeclient/issues/detail?id=3252 |
124 env.AddNodeToTestSuite(node, test_suites, 'run_gdb_change_variable_test', | 124 env.AddNodeToTestSuite(node, test_suites, 'run_gdb_change_variable_test', |
125 is_broken=env.Bit('bitcode')) | 125 is_broken=env.Bit('bitcode')) |
126 env.TestBindsFixedTcpPort(node) | 126 env.TestBindsFixedTcpPort(node) |
127 | 127 |
| 128 if not env.Bit('nacl_static_link'): |
| 129 node = env.CommandTest( |
| 130 'gdb_execute_nacl_manifest_twice.out', |
| 131 extra_deps=extra_deps, |
| 132 command=['${PYTHON}', env.File('execute_nacl_manifest_twice.py'), |
| 133 '--nexe', gdb_test_guest] + test_args) |
| 134 |
| 135 env.AddNodeToTestSuite(node, test_suites, |
| 136 'run_gdb_execute_nacl_manifest_twice_test') |
| 137 env.TestBindsFixedTcpPort(node) |
| 138 |
128 # GDB treats multithreaded programs specially. Provide distinct nexe for | 139 # GDB treats multithreaded programs specially. Provide distinct nexe for |
129 # multithreaded tests to isolate multiple threads-specific issues. | 140 # multithreaded tests to isolate multiple threads-specific issues. |
130 gdb_test_guest_thread = env.ComponentProgram( | 141 gdb_test_guest_thread = env.ComponentProgram( |
131 'gdb_test_guest_thread', 'gdb_test_guest_thread.c', | 142 'gdb_test_guest_thread', 'gdb_test_guest_thread.c', |
132 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) | 143 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) |
133 if env.ShouldTranslateToNexe(gdb_test_guest_thread): | 144 if env.ShouldTranslateToNexe(gdb_test_guest_thread): |
134 gdb_test_guest_thread = env.GetTranslatedNexe(gdb_test_guest_thread) | 145 gdb_test_guest_thread = env.GetTranslatedNexe(gdb_test_guest_thread) |
135 | 146 |
136 node = env.CommandTest( | 147 node = env.CommandTest( |
137 'gdb_break_continue_thread.out', | 148 'gdb_break_continue_thread.out', |
138 extra_deps=extra_deps, | 149 extra_deps=extra_deps, |
139 command=['${PYTHON}', env.File('break_continue_thread.py'), | 150 command=['${PYTHON}', env.File('break_continue_thread.py'), |
140 '--nexe', gdb_test_guest_thread] + test_args) | 151 '--nexe', gdb_test_guest_thread] + test_args) |
141 | 152 |
142 env.AddNodeToTestSuite(node, test_suites, 'run_gdb_break_continue_thread_test') | 153 env.AddNodeToTestSuite(node, test_suites, 'run_gdb_break_continue_thread_test') |
143 env.TestBindsFixedTcpPort(node) | 154 env.TestBindsFixedTcpPort(node) |
144 | 155 |
145 node = env.CommandTest( | 156 node = env.CommandTest( |
146 'gdb_syscall_thread.out', | 157 'gdb_syscall_thread.out', |
147 extra_deps=extra_deps, | 158 extra_deps=extra_deps, |
148 command=['${PYTHON}', env.File('syscall_thread.py'), | 159 command=['${PYTHON}', env.File('syscall_thread.py'), |
149 '--nexe', gdb_test_guest_thread] + test_args) | 160 '--nexe', gdb_test_guest_thread] + test_args) |
150 | 161 |
151 env.AddNodeToTestSuite(node, test_suites, 'run_gdb_syscall_thread_test') | 162 env.AddNodeToTestSuite(node, test_suites, 'run_gdb_syscall_thread_test') |
152 env.TestBindsFixedTcpPort(node) | 163 env.TestBindsFixedTcpPort(node) |
OLD | NEW |