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

Side by Side Diff: ppapi/native_client/tests/nacl_browser/untrusted_crash_dump/nacl.scons

Issue 10914053: Relocating files in the nacl repo that belong in chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge and fix windows Created 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 # -*- python -*-
2 # Copyright (c) 2012 The Chromium 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 # TODO(bradnelson): Enable for PNaCl (figure out a way to get full frames
9 # with PNaCl).
10 is_broken = (env.Bit('bitcode') or
11 env.Bit('running_on_valgrind'))
12
13 # Keep frame pointers so we get a nice stack trace.
14 # Set -O0 as otherwise some of the layers in the test case get optimized away.
15 env.Append(CCFLAGS=['-O0', '-fno-omit-frame-pointer', '-g'])
16 env['COMPONENT_STATIC'] = not env.Bit('nacl_glibc')
17 env['ENV']['NACL_UNTRUSTED_EXCEPTION_HANDLING'] = '1'
18
19 # Similar stuff, but in the browser.
20 # Confusingly, chrome_browser_tests are in nacl_env rather than nacl_irt_env,
21 # so we check for the IRT being used, but (oddly) not the irt specific env
22 # (test_use_irt).
23 if not env.Bit('tests_use_irt'):
24 untrusted_crash_dump_test = env.ComponentProgram(
25 'inbrowser_untrusted_crash_dump_test',
26 env.ComponentObject(
27 'inbrowser_untrusted_crash_dump_test',
28 '${MAIN_DIR}/tests/untrusted_crash_dump/untrusted_crash_dump_test.c'),
29 EXTRA_LIBS=['untrusted_crash_dump_lib',
30 'untrusted_crash_dump',
31 'platform', 'gio', 'imc', 'imc_syscalls',
32 '${PTHREAD_LIBS}'])
33
34 crash_dump = ('${TARGET_ROOT}/test_results/'
35 'inbrowser_untrusted_crash_dump_test.stdout')
36 run_test = env.PPAPIBrowserTester(
37 'inbrowser_untrusted_crash_dump_test_run.out',
38 url='untrusted_crash_dump.html',
39 nmfs=['untrusted_crash_dump_test.nmf'],
40 nacl_exe_stdout={
41 'file': crash_dump,
42 },
43 files=[untrusted_crash_dump_test,
44 env.File('untrusted_crash_dump.html')])
45 env.AlwaysBuild(run_test)
46 node = env.Command(
47 'inbrowser_untrusted_crash_dump_test.out',
48 ['${MAIN_DIR}/tests/untrusted_crash_dump/untrusted_crash_dump_test.py',
49 crash_dump, untrusted_crash_dump_test,
50 '${STAGING_DIR}/untrusted_crash_dump_test.nmf'],
51 '${PYTHON} ${SOURCES} ${ADDR2LINE} '
52 '${LIB_DIR} ${NACL_SDK_LIB} ${TARGET_FULLARCH}')
53 env.AddNodeToTestSuite(
54 node, ['chrome_browser_tests'],
55 'run_inbrowser_untrusted_crash_dump_test',
56 is_broken=env.PPAPIBrowserTesterIsBroken() or
57 # TODO(bradnelson): Once we have proper support for running
58 # in Chrome, remove this limitation.
59 env.Bit('disable_dynamic_plugin_loading') or
60 is_broken)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698