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 # IRT extensions test | 8 # IRT extensions test |
9 | 9 |
10 # TODO(dyen): Currently IRT extensions only supports newlib. | 10 # TODO(dyen): Currently IRT extensions only supports newlib. |
11 if env.Bit('bitcode') or env.Bit('nacl_glibc'): | 11 if env.Bit('bitcode') or env.Bit('nacl_glibc'): |
12 Return() | 12 Return() |
13 | 13 |
14 IRT_EXT_TEST_SRCS = [ | 14 IRT_EXT_TEST_SRCS = [ |
15 'error_report.c', | 15 'error_report.c', |
16 'file_desc.c', | 16 'file_desc.c', |
| 17 'mem_calls.c', |
17 ] | 18 ] |
18 | 19 |
19 IRT_EXT_LIBC_TEST_SRCS = [ | 20 IRT_EXT_LIBC_TEST_SRCS = [ |
20 'libc/file_tests.c', | 21 'libc/file_tests.c', |
21 'libc/libc_test.c', | 22 'libc/libc_test.c', |
| 23 'libc/mem_tests.c', |
22 ] | 24 ] |
23 | 25 |
24 irt_ext_libc_test_nexe = env.ComponentProgram('irt_ext_libc_test', | 26 irt_ext_libc_test_nexe = env.ComponentProgram('irt_ext_libc_test', |
25 (IRT_EXT_TEST_SRCS + | 27 (IRT_EXT_TEST_SRCS + |
26 IRT_EXT_LIBC_TEST_SRCS), | 28 IRT_EXT_LIBC_TEST_SRCS), |
27 EXTRA_LIBS=['${NONIRT_LIBS}'], | 29 EXTRA_LIBS=['${NONIRT_LIBS}'], |
28 ) | 30 ) |
29 | 31 |
30 node = env.CommandSelLdrTestNacl('irt_ext_libc_test.out', | 32 node = env.CommandSelLdrTestNacl('irt_ext_libc_test.out', |
31 irt_ext_libc_test_nexe) | 33 irt_ext_libc_test_nexe) |
32 | 34 |
33 env.AddNodeToTestSuite(node, ['small_tests'], | 35 env.AddNodeToTestSuite(node, ['small_tests'], |
34 'run_irt_ext_libc_test') | 36 'run_irt_ext_libc_test') |
OLD | NEW |