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

Side by Side Diff: ppapi/native_client/tests/ppapi_simple_tests/nacl.scons

Issue 7740013: Cloning a bunch of stuff from the native_client repository at r6528 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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
(Empty)
1 # -*- python -*-
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
4 # found in the LICENSE file.
5
6
7 Import('env')
8
9 env.Prepend(CPPDEFINES=['XP_UNIX'])
10
11
12 ######################################################################
13 # REPLAY TESTS
14 ######################################################################
15 TESTS = [('audio', ('audio',)),
16 ('graphics2d',('graphics2d',)),
17 ('event', ('event',)),
18 ('file', ('file1', 'file2')),
19 ]
20
21 for test_exe, test_inputs in TESTS:
22 nexe = env.ComponentProgram('ppapi_simple_' + test_exe,
23 [test_exe + '.cc'],
24 EXTRA_LIBS=['${PPAPI_LIBS}',
25 'ppapi_cpp',
26 'platform',
27 'gio',
28 'pthread',
29 'm',
30 ])
31
32 for test in test_inputs:
33 node = env.SelUniversalTest(
34 'ppapi_simple_' + test + '.out',
35 nexe,
36 sel_universal_flags=[
37 '--silence_nexe',
38 '--command_file',
39 env.File('sel_universal_ppapi_replay_prolog.stdin'),
40 '--command_file',
41 env.File(test +'.stdin'),
42 ],
43 uses_ppapi=True,
44 stdout_golden=env.File(test + '.stdout'),
45 )
46
47 env.AddNodeToTestSuite(node,
48 ['small_tests', 'sel_ldr_tests'],
49 'run_ppapi_simple_' + test + '_test')
50
51 ######################################################################
52 # EMULATOR TESTS
53 ######################################################################
54 node = env.SelUniversalTest(
55 'ppapi_emu_file.out',
56 env.File('ppapi_simple_file${PROGSUFFIX}'),
57 sel_universal_flags=[
58 '--silence_nexe',
59 '--command_file',
60 env.File('ppapi_emu_file.stdin'),
61 '--url_alias',
62 'test.txt', # c.f. ppapi_emu_file.stdin
63 env.File('test.txt'),
64 ],
65 uses_ppapi=True,
66 stdout_golden=env.File('ppapi_emu_file.stdout'),
67 )
68
69 env.AddNodeToTestSuite(node,
70 ['small_tests', 'sel_ldr_tests'],
71 'run_ppapi_emu_file_test')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698