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

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

Issue 12667019: [MIPS] Support for building tests for MIPS (Closed) Base URL: http://git.chromium.org/native_client/src/native_client.git@master
Patch Set: updates to sandboxed_mips.S. 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
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 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 # This test does not make any sense for pure pnacl 8 # This test does not make any sense for pure pnacl
9 if env.Bit('bitcode') and env.Bit('pnacl_generate_pexe'): 9 if env.Bit('bitcode') and env.Bit('pnacl_generate_pexe'):
10 Return() 10 Return()
11 11
12 # This test is disabled for MIPS because we do not have a MIPS-enabled nacl-gcc
13 # to test PNaCl against.
14 if env.Bit('target_mips32'):
15 Return()
16
12 # Case-by-case calling Convention Test for PNaCl and nacl-gcc compatibility. 17 # Case-by-case calling Convention Test for PNaCl and nacl-gcc compatibility.
13 18
14 # We make 4 modules. 19 # We make 4 modules.
15 # CC1 emits MODULE0 and CC2 MODULE1, CC2 emits MODULE2 and CC1 MODULE3 20 # CC1 emits MODULE0 and CC2 MODULE1, CC2 emits MODULE2 and CC1 MODULE3
16 # For the call test: 21 # For the call test:
17 # MODULE0(cc1) -> MODULE0(cc1) -> MODULE1(cc2) -> MODULE2(cc2) -> MODULE3(cc1). 22 # MODULE0(cc1) -> MODULE0(cc1) -> MODULE1(cc2) -> MODULE2(cc2) -> MODULE3(cc1).
18 # For the return test, the dataflow is reversed. 23 # For the return test, the dataflow is reversed.
19 24
20 # For x86-64, there is a compatibility flag and calling conv attribute. 25 # For x86-64, there is a compatibility flag and calling conv attribute.
21 # We use the same framework to test those as well. 26 # We use the same framework to test those as well.
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 test_source) 137 test_source)
133 objfiles.append(obj) 138 objfiles.append(obj)
134 prog = link_env.ComponentProgram(test_full_name, 139 prog = link_env.ComponentProgram(test_full_name,
135 objfiles, 140 objfiles,
136 EXTRA_LIBS=['${NONIRT_LIBS}']) 141 EXTRA_LIBS=['${NONIRT_LIBS}'])
137 node = env.CommandSelLdrTestNacl(test_full_name + '.out', 142 node = env.CommandSelLdrTestNacl(test_full_name + '.out',
138 prog) 143 prog)
139 env.AddNodeToTestSuite(node, ['small_tests', 'toolchain_tests', 144 env.AddNodeToTestSuite(node, ['small_tests', 'toolchain_tests',
140 'nonpexe_tests'], 145 'nonpexe_tests'],
141 'run_' + test_full_name + '_test') 146 'run_' + test_full_name + '_test')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698