Chromium Code Reviews| Index: tests/inbrowser_untrusted_crash_dump_test/nacl.scons |
| diff --git a/tests/inbrowser_untrusted_crash_dump_test/nacl.scons b/tests/inbrowser_untrusted_crash_dump_test/nacl.scons |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..378430fdc7d83a7fc88276f2b1d303d6ae70e5c6 |
| --- /dev/null |
| +++ b/tests/inbrowser_untrusted_crash_dump_test/nacl.scons |
| @@ -0,0 +1,62 @@ |
| +# -*- python -*- |
| +# Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +Import('env') |
| + |
| +# Exception handling support is only implemented for x86-32 Windows. |
|
Mark Seaborn
2012/02/06 19:44:06
Fix comment.
bradn
2012/02/06 22:27:48
Done.
|
| +is_broken = (not (env.Bit('host_windows') or env.Bit('host_mac')) or |
| + not env.Bit('build_x86_32')) |
| + |
| +# Don't build on anything other than x86-32 for now. |
| +if not env.Bit('build_x86_32'): |
| + Return() |
| + |
| +env.FilterOut(CCFLAGS=['-O2', '-fomit-frame-pointer']) |
|
Mark Seaborn
2012/02/06 19:44:06
Shouldn't be needed if the following line really a
bradn
2012/02/06 22:27:48
Done.
|
| +env.Append(CCFLAGS=['-O0', '-fno-omit-frame-pointer', '-g']) |
| +env.Append(CPPDEFINES=['IN_BROWER=1']) |
| + |
| +untrusted_crash_dump_lib = env.ComponentLibrary( |
| + 'inbrowser_untrusted_crash_dump_lib', |
| + '${MAIN_DIR}/tests/untrusted_crash_dump/untrusted_crash_dump_lib.c', |
| + EXTRA_LIBS=['srpc', 'platform', 'gio', 'imc', 'imc_syscalls', |
| + '${PTHREAD_LIBS}', '${NON_PPAPI_BROWSER_LIBS}'], |
| + COMPONENT_STATIC=not env.Bit('nacl_glibc')) |
| + |
| +untrusted_crash_dump_test = env.ComponentProgram( |
| + 'inbrowser_untrusted_crash_dump_test', |
| + [env.ComponentObject( |
| + 'untrusted_crash_dump', |
| + '${MAIN_DIR}/tests/untrusted_crash_dump/untrusted_crash_dump.c'), |
| + env.ComponentObject( |
| + 'untrusted_crash_dump_test', |
| + '${MAIN_DIR}/tests/untrusted_crash_dump/untrusted_crash_dump_test.c')], |
| + EXTRA_LIBS=['untrusted_crash_dump_lib', |
| + 'srpc', 'platform', 'gio', 'imc', 'imc_syscalls', |
| + '${PTHREAD_LIBS}', '${NON_PPAPI_BROWSER_LIBS}']) |
| + |
| +if env.Bit('nacl_glibc'): |
| + golden = 'untrusted_crash_dump_test_glibc.golden' |
| +else: |
| + golden = 'untrusted_crash_dump_test_newlib.golden' |
| +golden = '$MAIN_DIR/tests/untrusted_crash_dump/' + golden |
| + |
| +node = env.PPAPIBrowserTester( |
| + 'inbrowser_untrusted_crash_dump_test.out', |
| + url='untrusted_crash_dump.html', |
| + nmfs=['inbrowser_untrusted_crash_dump_test.nmf'], |
| + nacl_exe_stdout={ |
| + 'file': ('${TARGET_ROOT}/test_results/' |
| + 'inbrowser_untrusted_crash_dump_test.stdout'), |
| + 'golden': golden, |
| + 'decode_crash_dump': True, |
| + }, |
| + with_exceptions=True, |
| + files=[untrusted_crash_dump_test, |
| + env.File('untrusted_crash_dump.html')]) |
| +env.AddNodeToTestSuite( |
| + node, ['chrome_browser_tests', 'exception_tests'], |
| + 'run_inbrowser_untrusted_crash_dump_test', |
| + is_broken=env.PPAPIBrowserTesterIsBroken() or |
| + env.Bit('running_on_valgrind') or is_broken) |