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

Side by Side Diff: tests/barebones/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 2010 The Native Client Authors. All rights reserved. 2 # Copyright 2010 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 # Use of "-nostdlib" means these tests produce statically-linked 8 # Use of "-nostdlib" means these tests produce statically-linked
9 # executables. This does not work with the test runner for 9 # executables. This does not work with the test runner for
10 # nacl-glibc, which always runs the executables via ld.so. However, 10 # nacl-glibc, which always runs the executables via ld.so. However,
11 # we want to keep building the tests. 11 # we want to keep building the tests.
12 # TODO(mseaborn): To fix this, either switch these tests to 12 # TODO(mseaborn): To fix this, either switch these tests to
13 # dynamically link against libc, or make use of ld.so optional. 13 # dynamically link against libc, or make use of ld.so optional.
14 is_glibc = env.Bit('nacl_glibc') 14 is_glibc = env.Bit('nacl_glibc')
15 15
16 env.Replace(LIBS=[], 16 env.Replace(LIBS=[],
17 EXTRA_LIBS=[], 17 EXTRA_LIBS=[],
18 LINKFLAGS=['-nostdlib']) 18 LINKFLAGS=['-nostdlib'],
19 TRANSLATEFLAGS=['-nostdlib'])
19 20
20 # This setting will affect the barebones_regs.c test 21 # This setting will affect the barebones_regs.c test
21 if env.Bit('build_arm'): 22 if env.Bit('build_arm'):
22 env.Append(CPPDEFINES='SMALL_REGS_TEST') 23 env.Append(CPPDEFINES='SMALL_REGS_TEST')
23 24
24 25
25 # NOTE: the x86 linker wants _start() to be the very first function 26 # NOTE: the x86 linker wants _start() to be the very first function
26 FAKE_STARTUP = env.ComponentObject('fake_startup', 'fake_startup.c') 27 FAKE_STARTUP = env.ComponentObject('fake_startup', 'fake_startup.c')
27 28
28 barebones_tests = ['addr_modes', 29 barebones_tests = ['addr_modes',
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 '${SCONSTRUCT_DIR}/tests/prebuilt/arm/gold-barebones_hello_world${PROGSUFFIX}' 87 '${SCONSTRUCT_DIR}/tests/prebuilt/arm/gold-barebones_hello_world${PROGSUFFIX}'
87 ) 88 )
88 node = env.CommandSelLdrTestNacl( 89 node = env.CommandSelLdrTestNacl(
89 'gold-barebones_hello_world.out', 90 'gold-barebones_hello_world.out',
90 nexe, 91 nexe,
91 exit_status='55',) 92 exit_status='55',)
92 env.AddNodeToTestSuite(node, 93 env.AddNodeToTestSuite(node,
93 ['small_tests', 'sel_ldr_tests'], 94 ['small_tests', 'sel_ldr_tests'],
94 'run_gold-barebones_hello_world_test', 95 'run_gold-barebones_hello_world_test',
95 is_broken=is_glibc) 96 is_broken=is_glibc)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698