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

Side by Side Diff: tests/syscall_return_sandboxing/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/sysbasic/nacl.scons ('k') | tests/syscalls/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 2010 The Native Client Authors. All rights reserved. 2 # Copyright 2010 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 # The PNaCl translators are not supposed to handle incoming native code 8 # The PNaCl translators are not supposed to handle incoming native code
9 if env.Bit('use_sandboxed_translator'): 9 if env.Bit('use_sandboxed_translator'):
10 Return() 10 Return()
(...skipping 18 matching lines...) Expand all
29 use_obj_env = env.Clone() 29 use_obj_env = env.Clone()
30 30
31 if asm_env.Bit('bitcode'): 31 if asm_env.Bit('bitcode'):
32 asm_env.Replace(OBJSUFFIX='.o') 32 asm_env.Replace(OBJSUFFIX='.o')
33 asm_env.Append(ASFLAGS=['-arch', '${TARGET_FULLARCH}']) 33 asm_env.Append(ASFLAGS=['-arch', '${TARGET_FULLARCH}'])
34 # Allow use of native object file 34 # Allow use of native object file
35 use_obj_env.Append(LINKFLAGS=['--pnacl-allow-native']) 35 use_obj_env.Append(LINKFLAGS=['--pnacl-allow-native'])
36 36
37 asm_obj = asm_env.ComponentObject(GetAssemblerFile(env)) 37 asm_obj = asm_env.ComponentObject(GetAssemblerFile(env))
38 38
39 use_obj_env.ComponentProgram('syscall_return_sandboxing.nexe', 39 syscall_return_sandboxing_nexe = use_obj_env.ComponentProgram(
40 ['syscall_return_sandboxing.c', asm_obj]) 40 'syscall_return_sandboxing',
41 ['syscall_return_sandboxing.c', asm_obj])
41 node = env.CommandSelLdrTestNacl( 42 node = env.CommandSelLdrTestNacl(
42 'syscall_return_sandboxing.out', 43 'syscall_return_sandboxing.out',
43 command=[env.File('syscall_return_sandboxing.nexe')]) 44 syscall_return_sandboxing_nexe)
44 env.AddNodeToTestSuite(node, 45 env.AddNodeToTestSuite(node,
45 ['small_tests', 'sel_ldr_tests'], 46 ['small_tests', 'sel_ldr_tests'],
46 'run_syscall_return_sandboxing_test') 47 'run_syscall_return_sandboxing_test')
47 48
48 env.ComponentProgram('thread_create_bad_address.nexe', 49 thread_create_bad_address_nexe = env.ComponentProgram(
49 env.RawSyscallObjects(['thread_create_bad_address.c'])) 50 'thread_create_bad_address',
51 env.RawSyscallObjects(['thread_create_bad_address.c']))
50 node = env.CommandSelLdrTestNacl( 52 node = env.CommandSelLdrTestNacl(
51 'thread_create_bad_address.out', 53 'thread_create_bad_address.out',
52 command=[env.File('thread_create_bad_address.nexe')]) 54 thread_create_bad_address_nexe)
53 env.AddNodeToTestSuite(node, ['small_tests'], 55 env.AddNodeToTestSuite(node, ['small_tests'],
54 'run_thread_create_bad_address_test') 56 'run_thread_create_bad_address_test')
OLDNEW
« no previous file with comments | « tests/sysbasic/nacl.scons ('k') | tests/syscalls/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698