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

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

Issue 12594036: Add a scons pnacl finalize step for pnacl_generate_pexe tests. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Use StripSuffix Created 7 years, 9 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/gdb/nacl.scons ('k') | tests/multiple_sandboxes/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 2012 The Native Client Authors. All rights reserved. 2 # Copyright 2012 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 Import('env') 6 Import('env')
7 7
8 # valgrind has problems with minimal_test_guest 8 # valgrind has problems with minimal_test_guest
9 if env.IsRunningUnderValgrind(): 9 if env.IsRunningUnderValgrind():
10 Return() 10 Return()
11 11
12 # This test case tests an experimental profile of NaCl. If you make a 12 # This test case tests an experimental profile of NaCl. If you make a
13 # change which breaks this test which is difficult to fix, you can 13 # change which breaks this test which is difficult to fix, you can
14 # disable the test, but please CC mseaborn,krasin. 14 # disable the test, but please CC mseaborn,krasin.
15 15
16 if 'TRUSTED_ENV' not in env: 16 if 'TRUSTED_ENV' not in env:
17 Return() 17 Return()
18 trusted_env = env['TRUSTED_ENV'] 18 trusted_env = env['TRUSTED_ENV']
19 19
20 runner = trusted_env.ComponentProgram( 20 runner = trusted_env.ComponentProgram(
21 'minimal_test_host', ['minimal_test_host.c'], 21 'minimal_test_host', ['minimal_test_host.c'],
22 EXTRA_LIBS=['sel']) 22 EXTRA_LIBS=['sel'])
23 23
24 24
25 test_prog = env.ComponentProgram( 25 test_prog = env.ComponentProgram(
26 'minimal_test_guest', 26 'minimal_test_guest',
27 ['minimal_test_guest.c'], 27 ['minimal_test_guest.c'],
28 EXTRA_LINKFLAGS=['-nostdlib']) 28 EXTRA_LINKFLAGS=['-nostdlib'])
29 29
30 if env.ShouldTranslateToNexe(test_prog): 30 env.Replace(TRANSLATEFLAGS=['-nostdlib'])
31 env.Replace(TRANSLATEFLAGS=['-nostdlib']) 31 test_prog = env.GetTranslatedNexe(test_prog)
32 test_prog = env.GetTranslatedNexe(test_prog)
33 32
34 is_broken = not env.Bit('nacl_static_link') 33 is_broken = not env.Bit('nacl_static_link')
35 34
36 node = env.CommandTest('minimal_test.out', 35 node = env.CommandTest('minimal_test.out',
37 env.AddBootstrap(runner, [test_prog]), 36 env.AddBootstrap(runner, [test_prog]),
38 stdout_golden=env.File('minimal_test.stdout')) 37 stdout_golden=env.File('minimal_test.stdout'))
39 env.AddNodeToTestSuite(node, ['small_tests'], 'run_minnacl_test', 38 env.AddNodeToTestSuite(node, ['small_tests'], 'run_minnacl_test',
40 is_broken=is_broken) 39 is_broken=is_broken)
41 40
42 node = env.CommandTest('minimal_test_separate_thread.out', 41 node = env.CommandTest('minimal_test_separate_thread.out',
43 env.AddBootstrap(runner, 42 env.AddBootstrap(runner,
44 ['--use_separate_thread', test_prog]), 43 ['--use_separate_thread', test_prog]),
45 stdout_golden=env.File('minimal_test.stdout')) 44 stdout_golden=env.File('minimal_test.stdout'))
46 env.AddNodeToTestSuite(node, ['small_tests'], 45 env.AddNodeToTestSuite(node, ['small_tests'],
47 'run_minnacl_separate_thread_test', 46 'run_minnacl_separate_thread_test',
48 is_broken=is_broken) 47 is_broken=is_broken)
OLDNEW
« no previous file with comments | « tests/gdb/nacl.scons ('k') | tests/multiple_sandboxes/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698