OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2014 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 not env.Bit('bitcode'): | 8 if not env.Bit('bitcode'): |
9 Return() | 9 Return() |
10 # Translating the PSO to an ELF DSO doesn't work on x86-64 yet. The | 10 # Translating the PSO to an ELF DSO doesn't work on x86-64 yet. The |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 test_pll_a = MakeAndTranslatePll('test_pll_a', 'test_pll_a.c') | 106 test_pll_a = MakeAndTranslatePll('test_pll_a', 'test_pll_a.c') |
107 test_pll_b = MakeAndTranslatePll('test_pll_b', 'test_pll_b.c') | 107 test_pll_b = MakeAndTranslatePll('test_pll_b', 'test_pll_b.c') |
108 | 108 |
109 pll_loader_test = env.ComponentProgram( | 109 pll_loader_test = env.ComponentProgram( |
110 'pll_loader_test', ['pll_loader_test.cc'], | 110 'pll_loader_test', ['pll_loader_test.cc'], |
111 EXTRA_LIBS=['${NONIRT_LIBS}', 'pll_loader_lib']) | 111 EXTRA_LIBS=['${NONIRT_LIBS}', 'pll_loader_lib']) |
112 | 112 |
113 node = env.CommandSelLdrTestNacl( | 113 node = env.CommandSelLdrTestNacl( |
114 'pll_loader_test.out', pll_loader_test, | 114 'pll_loader_test.out', pll_loader_test, |
115 [test_pll_a, test_pll_b, test_pll_tls], | 115 [Dir('.').abspath, 'test_pll_a.so', 'test_pll_b.so', 'test_pll_tls.so'], |
116 # Add '-a' to enable filesystem access for opening DSOs. | 116 # Add '-a' to enable filesystem access for opening DSOs. |
117 sel_ldr_flags=['-a']) | 117 sel_ldr_flags=['-a'], |
| 118 extra_deps=[test_pll_a, test_pll_b, test_pll_tls]) |
118 env.AddNodeToTestSuite( | 119 env.AddNodeToTestSuite( |
119 node, ['small_tests', 'toolchain_tests'], | 120 node, ['small_tests', 'toolchain_tests'], |
120 'run_pll_loader_test', is_broken=is_broken) | 121 'run_pll_loader_test', is_broken=is_broken) |
121 | 122 |
122 | 123 |
123 pll_libc = env.Command( | 124 pll_libc = env.Command( |
124 'libc${OBJSUFFIX}', | 125 'libc${OBJSUFFIX}', |
125 # libnacl should come first so that it can override definitions in libc. | 126 # libnacl should come first so that it can override definitions in libc. |
126 [env.File('${LIB_DIR}/libnacl.a'), | 127 [env.File('${LIB_DIR}/libnacl.a'), |
127 env.File('${NACL_SDK_LIB}/libc.a'), | 128 env.File('${NACL_SDK_LIB}/libc.a'), |
(...skipping 14 matching lines...) Expand all Loading... |
142 | 143 |
143 node = env.CommandSelLdrTestNacl( | 144 node = env.CommandSelLdrTestNacl( |
144 'pll_hello_world_test.out', pll_loader, | 145 'pll_hello_world_test.out', pll_loader, |
145 [translated_pll_libc, translated_pll_hello_world], | 146 [translated_pll_libc, translated_pll_hello_world], |
146 # Add '-a' to enable filesystem access for opening DSOs. | 147 # Add '-a' to enable filesystem access for opening DSOs. |
147 sel_ldr_flags=['-a'], | 148 sel_ldr_flags=['-a'], |
148 stdout_golden=env.File('../hello_world/hello_world.stdout')) | 149 stdout_golden=env.File('../hello_world/hello_world.stdout')) |
149 env.AddNodeToTestSuite( | 150 env.AddNodeToTestSuite( |
150 node, ['small_tests', 'toolchain_tests'], | 151 node, ['small_tests', 'toolchain_tests'], |
151 'run_pll_hello_world_test', is_broken=is_broken) | 152 'run_pll_hello_world_test', is_broken=is_broken) |
OLD | NEW |