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

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

Issue 9316125: Adding untrusted crash dump / stack trace tests. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Turning on for linux32 Created 8 years, 10 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
(Empty)
1 # -*- python -*-
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
4 # found in the LICENSE file.
5
6 Import('env')
7
8
9 # Don't build on anything other than x86-32 for now.
10 if not env.Bit('build_x86_32'):
11 Return()
12
13 env.Append(CCFLAGS=['-O0', '-fno-omit-frame-pointer', '-g'])
14
15 untrusted_crash_dump_lib = env.ComponentLibrary(
16 'untrusted_crash_dump_lib',
17 'untrusted_crash_dump_lib.c',
18 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}'],
19 COMPONENT_STATIC=not env.Bit('nacl_glibc'))
20
21 untrusted_crash_dump_test = env.ComponentProgram(
22 'untrusted_crash_dump_test',
23 ['untrusted_crash_dump.c', 'untrusted_crash_dump_test.c'],
24 EXTRA_LIBS=['untrusted_crash_dump_lib',
25 '${PTHREAD_LIBS}', '${NONIRT_LIBS}'])
26
27 env['ENV']['NACL_UNTRUSTED_EXCEPTION_HANDLING'] = '1'
28
29 if env.Bit('nacl_glibc'):
30 golden = 'untrusted_crash_dump_test_glibc.golden'
31 else:
32 golden = 'untrusted_crash_dump_test_newlib.golden'
33 golden = '$MAIN_DIR/tests/untrusted_crash_dump/' + golden
34
35 dump_file = env.File('untrusted_crash_dump_test_core.json')
36 processed = env.File('untrusted_crash_dump_test.trace').abspath
37 node = env.CommandSelLdrTestNacl(
38 'untrusted_crash_dump_test_run.out',
39 untrusted_crash_dump_test,
40 exit_status=166,
41 sel_ldr_flags=['-a', '-E', 'NACLCOREFILE=' + dump_file.abspath])
42 env.SideEffect(dump_file, node)
43 env.AddPostAction(
44 node, env.UntrustedCrashDumpFilter(
45 processed, dump_file.abspath, untrusted_crash_dump_test.abspath))
46 env.AddPostAction(
47 node, env.GoldenFileCheckAction(processed, golden))
48 env.AddNodeToTestSuite(
49 node, ['small_tests', 'exception_tests'],
50 'run_untrusted_crash_dump_test')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698