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

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

Issue 544003002: NonSFI mode: Enable compiling exception_test for NonSFI NaCl on ARM (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: comments Created 6 years, 3 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 if not env.AllowInlineAssembly(): 8 if not env.AllowInlineAssembly():
9 Return() 9 Return()
10 10
11 env.Append(CPPDEFINES=[['NONSFI_MODE',
12 str(int(env.Bit('pnacl_unsandboxed') or
13 env.Bit('nonsfi_nacl')))]])
14
11 test_args = {'sel_ldr_flags': ['-e', '-E', 'OUTSIDE_BROWSER=1'], 15 test_args = {'sel_ldr_flags': ['-e', '-E', 'OUTSIDE_BROWSER=1'],
12 'declares_exit_status': True} 16 'declares_exit_status': True}
13 if env.Bit('target_arm') and env.UsingEmulator(): 17 if env.Bit('target_arm') and env.UsingEmulator():
14 test_args['sel_ldr_flags'].extend(['-E', 'UNDER_QEMU_ARM=1']) 18 test_args['sel_ldr_flags'].extend(['-E', 'UNDER_QEMU_ARM=1'])
15 19
16 helper_files = [] 20 helper_files = []
17 if env.Bit('target_x86'): 21 if env.Bit('target_x86') and not env.Bit('nonsfi_nacl'):
22 # TODO(uekawa): enable this for NonSFI NaCl.
18 helper_files.append('direction_flag_x86.S') 23 helper_files.append('direction_flag_x86.S')
19 exception_test = env.ComponentProgram( 24 exception_test = env.ComponentProgram(
20 env.ProgramNameForNmf('exception_test'), 25 env.ProgramNameForNmf('exception_test'),
21 ['exception_test.c'] + helper_files, 26 ['exception_test.c'] + helper_files,
22 EXTRA_LIBS=['${NONIRT_LIBS}', '${PTHREAD_LIBS}', '${TESTRUNNER_LIBS}', 27 EXTRA_LIBS=['${NONIRT_LIBS}', '${PTHREAD_LIBS}', '${TESTRUNNER_LIBS}',
23 '${EXCEPTION_LIBS}', 'test_common']) 28 '${EXCEPTION_LIBS}', 'test_common'])
24 29
25 node = env.CommandSelLdrTestNacl( 30 node = env.CommandSelLdrTestNacl(
26 'exception_test.out', exception_test, **test_args) 31 'exception_test.out', exception_test, **test_args)
27 env.AddNodeToTestSuite( 32 env.AddNodeToTestSuite(
(...skipping 25 matching lines...) Expand all
53 'exceptions_disabled_test', 58 'exceptions_disabled_test',
54 ['exceptions_disabled_test.c'], 59 ['exceptions_disabled_test.c'],
55 EXTRA_LIBS=['${NONIRT_LIBS}', '${EXCEPTION_LIBS}']) 60 EXTRA_LIBS=['${NONIRT_LIBS}', '${EXCEPTION_LIBS}'])
56 node = env.CommandSelLdrTestNacl( 61 node = env.CommandSelLdrTestNacl(
57 'exceptions_disabled_test.out', 62 'exceptions_disabled_test.out',
58 exceptions_disabled_test, [], 63 exceptions_disabled_test, [],
59 declares_exit_status=True) 64 declares_exit_status=True)
60 env.AddNodeToTestSuite( 65 env.AddNodeToTestSuite(
61 node, ['small_tests', 'exception_tests'], 66 node, ['small_tests', 'exception_tests'],
62 'run_exceptions_disabled_test') 67 'run_exceptions_disabled_test')
OLDNEW
« tests/exception_test/exception_test.c ('K') | « tests/exception_test/exception_test.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698