OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2008 The Native Client Authors. All rights reserved. | 2 # Copyright 2008 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
5 | 5 |
6 Import('env') | 6 Import('env') |
7 | 7 |
8 # There is no stat64 in newlib | 8 # There is no stat64 in newlib |
9 if not env.Bit('nacl_glibc'): | 9 if not env.Bit('nacl_glibc'): |
10 Return() | 10 Return() |
11 | 11 |
12 env.ComponentProgram('test_stat.nexe', 'test_stat.c') | 12 env.ComponentProgram('test_stat.nexe', 'test_stat.c') |
13 | 13 |
14 test_stat = env.CommandSelLdrTestNacl( | 14 test_stat = env.CommandSelLdrTestNacl( |
15 'test_stat.out', | 15 'test_stat.out', |
16 command=[env.File('test_stat.nexe'), env.File('test_stat_data')]) | 16 command=[env.File('test_stat.nexe'), env.File('test_stat_data')]) |
17 | 17 |
18 env.AddNodeToTestSuite(test_stat, ['small_tests'], 'run_stat_test') | 18 env.AddNodeToTestSuite(test_stat, ['small_tests'], 'run_stat_test') |
19 | 19 |
| 20 env.ComponentProgram('test_fstat.nexe', 'test_fstat.c') |
| 21 |
| 22 test_fstat = env.CommandSelLdrTestNacl( |
| 23 'test_fstat.out', |
| 24 command=[env.File('test_fstat.nexe'), env.File('test_stat_data')], |
| 25 stdout_golden=env.File('test_fstat.stdout')) |
| 26 |
| 27 env.AddNodeToTestSuite(test_fstat, ['small_tests'], 'run_fstat_test') |
| 28 |
20 env.ComponentProgram('test_dir.nexe', 'test_dir.c') | 29 env.ComponentProgram('test_dir.nexe', 'test_dir.c') |
21 | 30 |
22 test_dir_nexe = env.File('test_dir.nexe') | 31 test_dir_nexe = env.File('test_dir.nexe') |
23 | 32 |
24 test_dir = env.CommandSelLdrTestNacl( | 33 test_dir = env.CommandSelLdrTestNacl( |
25 'test_dir.out', | 34 'test_dir.out', |
26 command=[test_dir_nexe, test_dir_nexe.path.rstrip('test_dir.nexe')]) | 35 command=[test_dir_nexe, test_dir_nexe.path.rstrip('test_dir.nexe')]) |
27 | 36 |
28 # TODO(bsy): This is broken because sel_ldr's getdents() syscall | 37 # TODO(bsy): This is broken because sel_ldr's getdents() syscall |
29 # expects "struct nacl_abi_dirent" to match up with the kernel's | 38 # expects "struct nacl_abi_dirent" to match up with the kernel's |
(...skipping 10 matching lines...) Expand all Loading... |
40 | 49 |
41 env.AddNodeToTestSuite(test_time, ['small_tests'], 'run_time_test') | 50 env.AddNodeToTestSuite(test_time, ['small_tests'], 'run_time_test') |
42 | 51 |
43 env.ComponentProgram('test_rewind.nexe', 'test_rewind.c') | 52 env.ComponentProgram('test_rewind.nexe', 'test_rewind.c') |
44 | 53 |
45 test_rewind = env.CommandSelLdrTestNacl( | 54 test_rewind = env.CommandSelLdrTestNacl( |
46 'test_rewind.out', | 55 'test_rewind.out', |
47 command=[env.File('test_rewind.nexe'), env.File('test_rewind_data')]) | 56 command=[env.File('test_rewind.nexe'), env.File('test_rewind_data')]) |
48 | 57 |
49 env.AddNodeToTestSuite(test_rewind, ['small_tests'], 'run_rewind_test') | 58 env.AddNodeToTestSuite(test_rewind, ['small_tests'], 'run_rewind_test') |
OLD | NEW |