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

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

Issue 9696046: Add test running support for tests generated as pexes. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: 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
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 28 matching lines...) Expand all
39 'nacl_fault_inject', 39 'nacl_fault_inject',
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
50 extra_deps = []
51 if env.Bit('pnacl_stop_with_pexe'):
52 nexe_name, pexe_node = env.GetTranslatedNexe(test_prog)
53 test_prog = nexe_name
54 extra_deps = [pexe_node]
55
49 node = env.CommandTest('multidomain_test.out', [runner, test_prog], 56 node = env.CommandTest('multidomain_test.out', [runner, test_prog],
50 # Increase verbosity to get more information in 57 # Increase verbosity to get more information in
51 # the event of a crash. 58 # the event of a crash.
52 osenv='NACLVERBOSITY=4', 59 osenv='NACLVERBOSITY=4',
53 stdout_golden=env.File('multidomain_test.stdout')) 60 stdout_golden=env.File('multidomain_test.stdout'),
61 extra_deps=extra_deps)
54 62
55 # This test does not work everywhere: 63 # This test does not work everywhere:
56 # * NaCl's ARM sandbox does not support multiple sandboxes per 64 # * NaCl's ARM sandbox does not support multiple sandboxes per
57 # process, so this test is disabled for ARM. 65 # process, so this test is disabled for ARM.
58 # * This test currently fails on Mac because service_runtime tries to 66 # * This test currently fails on Mac because service_runtime tries to
59 # enable the Mac outer sandbox twice, which does not work. 67 # enable the Mac outer sandbox twice, which does not work.
60 # * multidomain_test_host assumes it is given a statically linked 68 # * multidomain_test_host assumes it is given a statically linked
61 # executable. Furthermore, statically-linked nacl-glibc does not 69 # executable. Furthermore, statically-linked nacl-glibc does not
62 # work here because of validation failures which require stubout 70 # work here because of validation failures which require stubout
63 # mode. 71 # mode.
64 is_broken = (env.Bit('build_arm') 72 is_broken = (env.Bit('build_arm')
65 or env.Bit('host_mac') 73 or env.Bit('host_mac')
66 or env.Bit('nacl_glibc')) 74 or env.Bit('nacl_glibc'))
67 75
68 env.AddNodeToTestSuite(node, ['small_tests'], 'run_multidomain_test', 76 env.AddNodeToTestSuite(node, ['small_tests'], 'run_multidomain_test',
69 is_broken=is_broken) 77 is_broken=is_broken)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698