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('env') | 6 Import('env') |
7 | 7 |
8 # The test works with PNaCl-ARM but not with PNaCl-x86, because the | 8 # The test works with PNaCl-ARM but not with PNaCl-x86, because the |
9 # assembler #defines __arm__ rather than __i386__ or __x86_64__ even | 9 # assembler #defines __arm__ rather than __i386__ or __x86_64__ even |
10 # when we are targetting x86. | 10 # when we are targetting x86. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 EXTRA_LIBS=[ | 50 EXTRA_LIBS=[ |
51 'testrunner', | 51 'testrunner', |
52 '${DYNCODE_LIBS}', | 52 '${DYNCODE_LIBS}', |
53 'srpc', | 53 'srpc', |
54 'imc_syscalls', | 54 'imc_syscalls', |
55 'platform', | 55 'platform', |
56 'gio', | 56 'gio', |
57 '${PTHREAD_LIBS}', | 57 '${PTHREAD_LIBS}', |
58 '${NONIRT_LIBS}' | 58 '${NONIRT_LIBS}' |
59 ]) | 59 ]) |
60 env.Publish(dynamic_load_test_nexe_name, 'run', ['dynamic_load_test.nmf']) | |
61 | 60 |
62 dynamic_modify_test_nexe_name = ('dynamic_modify_test_%s' % | 61 dynamic_modify_test_nexe_name = ('dynamic_modify_test_%s' % |
63 env.get('TARGET_FULLARCH')) | 62 env.get('TARGET_FULLARCH')) |
64 dynamic_modify_test_nexe = prog_env.ComponentProgram( | 63 dynamic_modify_test_nexe = prog_env.ComponentProgram( |
65 dynamic_modify_test_nexe_name, | 64 dynamic_modify_test_nexe_name, |
66 ['dynamic_modify_test.c', | 65 ['dynamic_modify_test.c', |
67 template_obj], | 66 template_obj], |
68 EXTRA_LIBS=[ | 67 EXTRA_LIBS=[ |
69 'testrunner', | 68 'testrunner', |
70 '${DYNCODE_LIBS}', | 69 '${DYNCODE_LIBS}', |
71 'srpc', | 70 'srpc', |
72 'imc_syscalls', | 71 'imc_syscalls', |
73 'platform', | 72 'platform', |
74 'gio', | 73 'gio', |
75 '${PTHREAD_LIBS}', | 74 '${PTHREAD_LIBS}', |
76 '${NONIRT_LIBS}']) | 75 '${NONIRT_LIBS}']) |
77 env.Publish(dynamic_modify_test_nexe_name, 'run', ['dynamic_modify_test.nmf']) | |
78 | 76 |
79 write_to_dyncode_nexe = prog_env.ComponentProgram( | 77 write_to_dyncode_nexe = prog_env.ComponentProgram( |
80 'write_to_dyncode', | 78 'write_to_dyncode', |
81 ['write_to_dyncode.c'], | 79 ['write_to_dyncode.c'], |
82 EXTRA_LIBS=['${NONIRT_LIBS}']) | 80 EXTRA_LIBS=['${NONIRT_LIBS}']) |
83 | 81 |
84 dyncode_disabled_test_nexe = prog_env.ComponentProgram( | 82 dyncode_disabled_test_nexe = prog_env.ComponentProgram( |
85 'dyncode_disabled_test', | 83 'dyncode_disabled_test', |
86 ['dyncode_disabled_test.c'], | 84 ['dyncode_disabled_test.c'], |
87 EXTRA_LIBS=['${DYNCODE_LIBS}', '${NONIRT_LIBS}']) | 85 EXTRA_LIBS=['${DYNCODE_LIBS}', '${NONIRT_LIBS}']) |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 dynamic_modify_test_nexe, | 142 dynamic_modify_test_nexe, |
145 sel_ldr_flags=['-E', 'NACL_SRPC_STANDALONE=1'])) | 143 sel_ldr_flags=['-E', 'NACL_SRPC_STANDALONE=1'])) |
146 | 144 |
147 # TODO(kcc): non-standard linking options confuse Valgrind debug info reader. | 145 # TODO(kcc): non-standard linking options confuse Valgrind debug info reader. |
148 # See http://code.google.com/p/nativeclient/issues/detail?id=1606 | 146 # See http://code.google.com/p/nativeclient/issues/detail?id=1606 |
149 is_broken = prog_env.IsRunningUnderValgrind() | 147 is_broken = prog_env.IsRunningUnderValgrind() |
150 prog_env.AddNodeToTestSuite(tests, | 148 prog_env.AddNodeToTestSuite(tests, |
151 ['small_tests', 'sel_ldr_tests'], | 149 ['small_tests', 'sel_ldr_tests'], |
152 'run_dynamic_load_test', | 150 'run_dynamic_load_test', |
153 is_broken=is_broken) | 151 is_broken=is_broken) |
OLD | NEW |