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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 | 61 |
62 node = env.CommandTest( | 62 node = env.CommandTest( |
63 'gdb_step_from_func_start.out', | 63 'gdb_step_from_func_start.out', |
64 command=['${PYTHON}', env.File('step_from_func_start.py')], | 64 command=['${PYTHON}', env.File('step_from_func_start.py')], |
65 osenv=env_vars + ['GDB_TEST_GUEST=%s' % gdb_test_guest.abspath], | 65 osenv=env_vars + ['GDB_TEST_GUEST=%s' % gdb_test_guest.abspath], |
66 extra_deps=[sel_ldr, irt, gdb_test_guest]) | 66 extra_deps=[sel_ldr, irt, gdb_test_guest]) |
67 | 67 |
68 env.AddNodeToTestSuite(node, ['large_tests'], | 68 env.AddNodeToTestSuite(node, ['large_tests'], |
69 'run_gdb_step_from_func_start_test') | 69 'run_gdb_step_from_func_start_test') |
70 | 70 |
71 node = env.CommandTest( | |
72 'gdb_call.out', | |
73 command=['${PYTHON}', env.File('call.py')], | |
Mark Seaborn
2012/08/30 16:55:57
Nit: "call" is a bit generic. Can you call this s
halyavin
2012/08/31 08:01:24
Done.
| |
74 osenv=env_vars + ['GDB_TEST_GUEST=%s' % gdb_test_guest.abspath], | |
75 extra_deps=[sel_ldr, irt, gdb_test_guest]) | |
76 | |
77 env.AddNodeToTestSuite(node, ['large_tests'], | |
78 'run_gdb_call_test') | |
79 | |
71 # GDB treats multithreaded programs specially. Provide distinct nexe for | 80 # GDB treats multithreaded programs specially. Provide distinct nexe for |
72 # multithreaded tests to isolate multiple threads-specific issues. | 81 # multithreaded tests to isolate multiple threads-specific issues. |
73 gdb_test_guest_thread = env.ComponentProgram( | 82 gdb_test_guest_thread = env.ComponentProgram( |
74 'gdb_test_guest_thread', 'gdb_test_guest_thread.c', | 83 'gdb_test_guest_thread', 'gdb_test_guest_thread.c', |
75 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) | 84 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) |
76 | 85 |
77 node = env.CommandTest( | 86 node = env.CommandTest( |
78 'gdb_break_continue_thread.out', | 87 'gdb_break_continue_thread.out', |
79 command=['${PYTHON}', env.File('break_continue_thread.py')], | 88 command=['${PYTHON}', env.File('break_continue_thread.py')], |
80 osenv=env_vars + ['GDB_TEST_GUEST=%s' % gdb_test_guest_thread.abspath], | 89 osenv=env_vars + ['GDB_TEST_GUEST=%s' % gdb_test_guest_thread.abspath], |
81 extra_deps=[sel_ldr, irt, gdb_test_guest_thread]) | 90 extra_deps=[sel_ldr, irt, gdb_test_guest_thread]) |
82 | 91 |
83 env.AddNodeToTestSuite(node, ['large_tests'], | 92 env.AddNodeToTestSuite(node, ['large_tests'], |
84 'run_gdb_break_continue_thread_test') | 93 'run_gdb_break_continue_thread_test') |
85 | 94 |
86 node = env.CommandTest( | 95 node = env.CommandTest( |
87 'gdb_syscall_thread.out', | 96 'gdb_syscall_thread.out', |
88 command=['${PYTHON}', env.File('syscall_thread.py')], | 97 command=['${PYTHON}', env.File('syscall_thread.py')], |
89 osenv=env_vars + ['GDB_TEST_GUEST=%s' % gdb_test_guest_thread.abspath], | 98 osenv=env_vars + ['GDB_TEST_GUEST=%s' % gdb_test_guest_thread.abspath], |
90 extra_deps=[sel_ldr, irt, gdb_test_guest_thread]) | 99 extra_deps=[sel_ldr, irt, gdb_test_guest_thread]) |
91 | 100 |
92 env.AddNodeToTestSuite(node, ['large_tests'], | 101 env.AddNodeToTestSuite(node, ['large_tests'], |
93 'run_gdb_syscall_thread_test') | 102 'run_gdb_syscall_thread_test') |
OLD | NEW |