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

Side by Side Diff: tests/callingconv_ppapi/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 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 # Calling convention test to ensure interoperabilty of nacl-gcc and 6 # Calling convention test to ensure interoperabilty of nacl-gcc and
7 # pnacl generated code 7 # pnacl generated code
8 8
9 Import('env') 9 Import('env')
10 10
11 # This test does not make any sense for pure pnacl 11 # This test does not make any sense for pure pnacl
12 if not env.Bit('bitcode'): 12 if not env.Bit('bitcode'):
13 Return() 13 Return()
14 14
15 if env.Bit('pnacl_generate_pexe'): 15 if env.Bit('pnacl_generate_pexe'):
16 Return() 16 Return()
17 17
18 if env.Bit('built_elsewhere'): 18 if env.Bit('built_elsewhere'):
19 Return() 19 Return()
20 20
21 # This test is disabled for MIPS because we do not have a MIPS-enabled nacl-gcc
22 # to test PNaCl against.
23 if env.Bit('target_mips32'):
24 Return()
25
21 env_pnacl_cc = env.Clone() 26 env_pnacl_cc = env.Clone()
22 env_pnacl_cc.PNaClForceNative() 27 env_pnacl_cc.PNaClForceNative()
23 # for ppapi headers which include other ppapi headers 28 # for ppapi headers which include other ppapi headers
24 env_pnacl_cc.Append(CPPPATH='${SCONSTRUCT_DIR}/tests/callingconv_ppapi') 29 env_pnacl_cc.Append(CPPPATH='${SCONSTRUCT_DIR}/tests/callingconv_ppapi')
25 30
26 env_pnacl_cc_calling = env_pnacl_cc.Clone() 31 env_pnacl_cc_calling = env_pnacl_cc.Clone()
27 env_pnacl_cc_calling.Append( 32 env_pnacl_cc_calling.Append(
28 CCFLAGS=['-Xtranslator', '--cc-rewrite'], 33 CCFLAGS=['-Xtranslator', '--cc-rewrite'],
29 # force invoked functions to have "gcc" prefix 34 # force invoked functions to have "gcc" prefix
30 CPPDEFINES=['INVOCATION_PREFIX=gcc']) 35 CPPDEFINES=['INVOCATION_PREFIX=gcc'])
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 for name, objs in TARGETS: 94 for name, objs in TARGETS:
90 nexe = env_pnacl_cc.ComponentProgram('callingconv_ppapi_%s' % name, 95 nexe = env_pnacl_cc.ComponentProgram('callingconv_ppapi_%s' % name,
91 objs, 96 objs,
92 EXTRA_LIBS=['${NONIRT_LIBS}']) 97 EXTRA_LIBS=['${NONIRT_LIBS}'])
93 test= env.CommandSelLdrTestNacl('callingconv_ppapi_%s.out' % name, 98 test= env.CommandSelLdrTestNacl('callingconv_ppapi_%s.out' % name,
94 nexe, 99 nexe,
95 stdout_golden=env.File('golden.out')) 100 stdout_golden=env.File('golden.out'))
96 env.AddNodeToTestSuite(test, 101 env.AddNodeToTestSuite(test,
97 ['medium_tests', 'nonpexe_tests'], 102 ['medium_tests', 'nonpexe_tests'],
98 'run_callingconv_ppapi_%s_test' % name) 103 'run_callingconv_ppapi_%s_test' % name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698