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

Side by Side Diff: tests/app_lib/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
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 6
7 Import('env') 7 Import('env')
8 8
9 ###################################################################### 9 ######################################################################
10 # Smoke Test 10 # Smoke Test
11 ###################################################################### 11 ######################################################################
12 env.ComponentProgram('app_lib_test.nexe', 12 nexe = env.ComponentProgram('app_lib_test',
13 'app_lib_test.c', 13 'app_lib_test.c',
14 EXTRA_LIBS=['pthread'], 14 EXTRA_LIBS=['pthread'],
15 ) 15 )
16 16
17 # NOTE: we are using the same file as stdin and on the command line 17 # NOTE: we are using the same file as stdin and on the command line
18 # 18 #
19 # app_lib_test exercises stdio, in particular, it uses fopen on the 19 # app_lib_test exercises stdio, in particular, it uses fopen on the
20 # command line argument, so it requires the -a flag to sel_ldr in 20 # command line argument, so it requires the -a flag to sel_ldr in
21 # order to access the filesystem. 21 # order to access the filesystem.
22 node = env.CommandSelLdrTestNacl( 22 node = env.CommandSelLdrTestNacl(
23 'app_lib_test.out', 23 'app_lib_test.out',
24 command=[env.File('app_lib_test.nexe'), env.File('app_lib_test.stdin')], 24 nexe,
25 args=[env.File('app_lib_test.stdin')],
25 stdin=env.File('app_lib_test.stdin'), 26 stdin=env.File('app_lib_test.stdin'),
26 stdout_golden=env.File('app_lib_test.stdout'), 27 stdout_golden=env.File('app_lib_test.stdout'),
27 sel_ldr_flags=['-a'], 28 sel_ldr_flags=['-a'],
28 ) 29 )
29 30
30 env.AddNodeToTestSuite(node, ['small_tests'], 'run_app_lib_test') 31 env.AddNodeToTestSuite(node, ['small_tests'], 'run_app_lib_test')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698