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

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

Issue 9695064: Simplify GetTranslatedNexe() (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Rebase Created 8 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/minnacl/nacl.scons ('k') | no next file » | 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 2011 The Native Client Authors. All rights reserved. 2 # Copyright 2011 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 # This test case tests an experimental use case for NaCl. If you make 8 # This test case tests an experimental use case for NaCl. If you make
9 # a change which breaks this test which is difficult to fix, you can 9 # a change which breaks this test which is difficult to fix, you can
10 # disable the test, but please CC mseaborn,krasin. 10 # disable the test, but please CC mseaborn,krasin.
(...skipping 29 matching lines...) Expand all
40 'platform', 40 'platform',
41 'platform_qual_lib', 41 'platform_qual_lib',
42 'gio', 42 'gio',
43 ] + VALIDATOR_LIBS) 43 ] + VALIDATOR_LIBS)
44 44
45 test_prog = env.ComponentProgram( 45 test_prog = env.ComponentProgram(
46 'multidomain_test_guest', ['multidomain_test_guest.c'], 46 'multidomain_test_guest', ['multidomain_test_guest.c'],
47 EXTRA_LIBS=['imc_syscalls', '${NONIRT_LIBS}']) 47 EXTRA_LIBS=['imc_syscalls', '${NONIRT_LIBS}'])
48 48
49 # If we are generating a pexe, translate it first 49 # If we are generating a pexe, translate it first
50 extra_deps = []
51 if env.Bit('pnacl_generate_pexe'): 50 if env.Bit('pnacl_generate_pexe'):
52 nexe_name, pexe_node = env.GetTranslatedNexe(test_prog) 51 test_prog = env.GetTranslatedNexe(test_prog)
53 test_prog = nexe_name
54 extra_deps = [pexe_node]
55 52
56 node = env.CommandTest('multidomain_test.out', [runner, test_prog], 53 node = env.CommandTest('multidomain_test.out', [runner, test_prog],
57 # Increase verbosity to get more information in 54 # Increase verbosity to get more information in
58 # the event of a crash. 55 # the event of a crash.
59 osenv='NACLVERBOSITY=4', 56 osenv='NACLVERBOSITY=4',
60 stdout_golden=env.File('multidomain_test.stdout'), 57 stdout_golden=env.File('multidomain_test.stdout'))
61 extra_deps=extra_deps)
62 58
63 # This test does not work everywhere: 59 # This test does not work everywhere:
64 # * NaCl's ARM sandbox does not support multiple sandboxes per 60 # * NaCl's ARM sandbox does not support multiple sandboxes per
65 # process, so this test is disabled for ARM. 61 # process, so this test is disabled for ARM.
66 # * This test currently fails on Mac because service_runtime tries to 62 # * This test currently fails on Mac because service_runtime tries to
67 # enable the Mac outer sandbox twice, which does not work. 63 # enable the Mac outer sandbox twice, which does not work.
68 # * multidomain_test_host assumes it is given a statically linked 64 # * multidomain_test_host assumes it is given a statically linked
69 # executable. Furthermore, statically-linked nacl-glibc does not 65 # executable. Furthermore, statically-linked nacl-glibc does not
70 # work here because of validation failures which require stubout 66 # work here because of validation failures which require stubout
71 # mode. 67 # mode.
72 is_broken = (env.Bit('build_arm') 68 is_broken = (env.Bit('build_arm')
73 or env.Bit('host_mac') 69 or env.Bit('host_mac')
74 or env.Bit('nacl_glibc')) 70 or env.Bit('nacl_glibc'))
75 71
76 env.AddNodeToTestSuite(node, ['small_tests'], 'run_multidomain_test', 72 env.AddNodeToTestSuite(node, ['small_tests'], 'run_multidomain_test',
77 is_broken=is_broken) 73 is_broken=is_broken)
OLDNEW
« no previous file with comments | « tests/minnacl/nacl.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698