Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: tests/glibc_syscall_wrappers/nacl.scons

Issue 7242011: Get rid of assumptions about ".nexe" extension. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/glibc_static_test/nacl.scons ('k') | tests/hello_world/nacl.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 test_stat_nexe = env.ComponentProgram('test_stat', '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 test_stat_nexe,
17 args=[env.File('test_stat_data')])
17 18
18 env.AddNodeToTestSuite(test_stat, ['small_tests'], 'run_stat_test') 19 env.AddNodeToTestSuite(test_stat, ['small_tests'], 'run_stat_test')
19 20
20 env.ComponentProgram('test_fstat.nexe', 'test_fstat.c') 21 test_fstat_nexe = env.ComponentProgram('test_fstat', 'test_fstat.c')
21 22
22 test_fstat = env.CommandSelLdrTestNacl( 23 test_fstat = env.CommandSelLdrTestNacl(
23 'test_fstat.out', 24 'test_fstat.out',
24 command=[env.File('test_fstat.nexe'), env.File('test_stat_data')], 25 test_fstat_nexe,
26 args=[env.File('test_stat_data')],
25 stdout_golden=env.File('test_fstat.stdout')) 27 stdout_golden=env.File('test_fstat.stdout'))
26 28
27 env.AddNodeToTestSuite(test_fstat, ['small_tests'], 'run_fstat_test') 29 env.AddNodeToTestSuite(test_fstat, ['small_tests'], 'run_fstat_test')
28 30
29 env.ComponentProgram('test_dir.nexe', 'test_dir.c') 31 test_dir_nexe = env.ComponentProgram('test_dir', 'test_dir.c')
30
31 test_dir_nexe = env.File('test_dir.nexe')
32 32
33 test_dir = env.CommandSelLdrTestNacl( 33 test_dir = env.CommandSelLdrTestNacl(
34 'test_dir.out', 34 'test_dir.out',
35 command=[test_dir_nexe, test_dir_nexe.path.rstrip('test_dir.nexe')]) 35 test_dir_nexe,
36 args=[test_dir_nexe.path.rstrip('test_dir${PROGSUFFIX}')])
36 37
37 # TODO(bsy): This is broken because sel_ldr's getdents() syscall 38 # TODO(bsy): This is broken because sel_ldr's getdents() syscall
38 # expects "struct nacl_abi_dirent" to match up with the kernel's 39 # expects "struct nacl_abi_dirent" to match up with the kernel's
39 # "struct dirent" on Linux, and this no longer the case. 40 # "struct dirent" on Linux, and this no longer the case.
40 # See http://code.google.com/p/nativeclient/issues/detail?id=1253 41 # See http://code.google.com/p/nativeclient/issues/detail?id=1253
41 env.AddNodeToTestSuite(test_dir, ['small_tests'], 'run_dir_test', 42 env.AddNodeToTestSuite(test_dir, ['small_tests'], 'run_dir_test',
42 is_broken=True) 43 is_broken=True)
43 44
44 env.ComponentProgram('test_time.nexe', 'test_time.c') 45 test_time_nexe = env.ComponentProgram('test_time', 'test_time.c')
45 46
46 test_time = env.CommandSelLdrTestNacl( 47 test_time = env.CommandSelLdrTestNacl('test_time.out', test_time_nexe)
47 'test_time.out',
48 command=[env.File('test_time.nexe')])
49 48
50 env.AddNodeToTestSuite(test_time, ['small_tests'], 'run_time_test') 49 env.AddNodeToTestSuite(test_time, ['small_tests'], 'run_time_test')
51 50
52 env.ComponentProgram('test_rewind.nexe', 'test_rewind.c') 51 test_rewind_nexe = env.ComponentProgram('test_rewind', 'test_rewind.c')
53 52
54 test_rewind = env.CommandSelLdrTestNacl( 53 test_rewind = env.CommandSelLdrTestNacl(
55 'test_rewind.out', 54 'test_rewind.out',
56 command=[env.File('test_rewind.nexe'), env.File('test_rewind_data')]) 55 test_rewind_nexe,
56 args=[env.File('test_rewind_data')])
57 57
58 env.AddNodeToTestSuite(test_rewind, ['small_tests'], 'run_rewind_test') 58 env.AddNodeToTestSuite(test_rewind, ['small_tests'], 'run_rewind_test')
OLDNEW
« no previous file with comments | « tests/glibc_static_test/nacl.scons ('k') | tests/hello_world/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698