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

Side by Side Diff: tests/ppapi_simple_tests/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/ppapi_proxy/nacl.scons ('k') | tests/ppapi_test_example/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 (c) 2011 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2011 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 6
7 Import('env') 7 Import('env')
8 8
9 env.Prepend(CPPDEFINES=['XP_UNIX']) 9 env.Prepend(CPPDEFINES=['XP_UNIX'])
10 10
11 TESTS = [('audio', ('audio',)), 11 TESTS = [('audio', ('audio',)),
12 ('graphics2d',('graphics2d',)), 12 ('graphics2d',('graphics2d',)),
13 ('event', ('event',)), 13 ('event', ('event',)),
14 ('file', ('file1', 'file2')), 14 ('file', ('file1', 'file2')),
15 ] 15 ]
16 16
17 for test_exe, test_inputs in TESTS: 17 for test_exe, test_inputs in TESTS:
18 nexe = env.ComponentProgram('ppapi_simple_' + test_exe + '.nexe', 18 nexe = env.ComponentProgram('ppapi_simple_' + test_exe,
19 [test_exe + '.cc'], 19 [test_exe + '.cc'],
20 EXTRA_LIBS=['${PPAPI_LIBS}', 20 EXTRA_LIBS=['${PPAPI_LIBS}',
21 'ppapi_cpp', 21 'ppapi_cpp',
22 'platform', 22 'platform',
23 'gio', 23 'gio',
24 'pthread', 24 'pthread',
25 'm', 25 'm',
26 ]) 26 ])
27 27
28 for test in test_inputs: 28 for test in test_inputs:
29 node = env.SelUniversalTest( 29 node = env.SelUniversalTest(
30 'ppapi_simple_' + test + '.out', 30 'ppapi_simple_' + test + '.out',
31 nexe,
31 sel_universal_flags=[ 32 sel_universal_flags=[
32 '--silence_nexe', 33 '--silence_nexe',
33 '--command_file', 34 '--command_file',
34 env.File('sel_universal_ppapi_replay_prolog.stdin'), 35 env.File('sel_universal_ppapi_replay_prolog.stdin'),
35 '--command_file', 36 '--command_file',
36 env.File(test +'.stdin'), 37 env.File(test +'.stdin'),
37 ], 38 ],
38 uses_ppapi=True, 39 uses_ppapi=True,
39 command=[nexe],
40 stdout_golden=env.File(test + '.stdout'), 40 stdout_golden=env.File(test + '.stdout'),
41 ) 41 )
42 42
43 env.AddNodeToTestSuite(node, 43 env.AddNodeToTestSuite(node,
44 ['small_tests', 'sel_ldr_tests'], 44 ['small_tests', 'sel_ldr_tests'],
45 'run_ppapi_simple_' + test + '_test') 45 'run_ppapi_simple_' + test + '_test')
OLDNEW
« no previous file with comments | « tests/ppapi_proxy/nacl.scons ('k') | tests/ppapi_test_example/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698