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 # force inclusion of entire library, so that we can validate it | 8 # force inclusion of entire library, so that we can validate it |
9 # NOTE: This approach does not work for -lc because of tons of | 9 # NOTE: This approach does not work for -lc because of tons of |
10 # undefined symbols which would have to be stubbed out | 10 # undefined symbols which would have to be stubbed out |
(...skipping 12 matching lines...) Expand all Loading... |
23 # All the libraries were already included via -l switches in LINKFLAGS. | 23 # All the libraries were already included via -l switches in LINKFLAGS. |
24 # But we use them again in LIBS so scons knows about the dependencies. | 24 # But we use them again in LIBS so scons knows about the dependencies. |
25 # _LIBFLAGS is the internal variable that puts the expansion of LIBS | 25 # _LIBFLAGS is the internal variable that puts the expansion of LIBS |
26 # into the command line; so by clearing that, we prevent scons from | 26 # into the command line; so by clearing that, we prevent scons from |
27 # adding repeated -l switches at the end of the link. | 27 # adding repeated -l switches at the end of the link. |
28 nexe = env.ComponentProgram('dummy', 'dummy.c', | 28 nexe = env.ComponentProgram('dummy', 'dummy.c', |
29 EXTRA_LINKFLAGS=DEP_LINKFLAGS, | 29 EXTRA_LINKFLAGS=DEP_LINKFLAGS, |
30 LIBS=DEP_LIBS, | 30 LIBS=DEP_LIBS, |
31 _LIBFLAGS='') | 31 _LIBFLAGS='') |
32 node = env.CommandValidatorTestNacl('whole_archive_test.out', | 32 node = env.CommandValidatorTestNacl('whole_archive_test.out', |
33 image=[nexe]) | 33 image=nexe) |
34 env.AddNodeToTestSuite(node, | 34 env.AddNodeToTestSuite(node, |
35 ['toolchain_tests', 'small_tests'], | 35 ['toolchain_tests', 'small_tests'], |
36 'run_whole_archive_test') | 36 'run_whole_archive_test') |
37 | 37 |
38 | 38 |
39 TESTS_TO_RUN = [ | 39 TESTS_TO_RUN = [ |
40 # (src, exit_status, golden_file, cond), | 40 # (src, exit_status, golden_file, cond), |
41 # The valus None for golden_file means no golden file, c.f. | 41 # The valus None for golden_file means no golden file, c.f. |
42 # SConstruct::CommandTest() | 42 # SConstruct::CommandTest() |
43 ('setlongjmp.c', '55', None, True), | 43 ('setlongjmp.c', '55', None, True), |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 ['toolchain_tests', 'small_tests'], | 206 ['toolchain_tests', 'small_tests'], |
207 'run_strtoull_test') | 207 'run_strtoull_test') |
208 | 208 |
209 wcstoll_nexe = env.ComponentProgram('wcstoll', 'wcstoll.c', | 209 wcstoll_nexe = env.ComponentProgram('wcstoll', 'wcstoll.c', |
210 EXTRA_LIBS=['${NONIRT_LIBS}']) | 210 EXTRA_LIBS=['${NONIRT_LIBS}']) |
211 node = env.CommandSelLdrTestNacl('wcstoll.out', wcstoll_nexe) | 211 node = env.CommandSelLdrTestNacl('wcstoll.out', wcstoll_nexe) |
212 env.AddNodeToTestSuite(node, | 212 env.AddNodeToTestSuite(node, |
213 ['toolchain_tests', 'small_tests'], | 213 ['toolchain_tests', 'small_tests'], |
214 'run_wcstoll_test', | 214 'run_wcstoll_test', |
215 is_broken=env.Bit('nacl_glibc')) | 215 is_broken=env.Bit('nacl_glibc')) |
OLD | NEW |