Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 # 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.
| |
| 9 is_broken = (not (env.Bit('host_windows') or env.Bit('host_mac')) or | |
| 10 not env.Bit('build_x86_32')) | |
| 11 | |
| 12 # Don't build on anything other than x86-32 for now. | |
| 13 if not env.Bit('build_x86_32'): | |
| 14 Return() | |
| 15 | |
| 16 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.
| |
| 17 env.Append(CCFLAGS=['-O0', '-fno-omit-frame-pointer', '-g']) | |
| 18 env.Append(CPPDEFINES=['IN_BROWER=1']) | |
| 19 | |
| 20 untrusted_crash_dump_lib = env.ComponentLibrary( | |
| 21 'inbrowser_untrusted_crash_dump_lib', | |
| 22 '${MAIN_DIR}/tests/untrusted_crash_dump/untrusted_crash_dump_lib.c', | |
| 23 EXTRA_LIBS=['srpc', 'platform', 'gio', 'imc', 'imc_syscalls', | |
| 24 '${PTHREAD_LIBS}', '${NON_PPAPI_BROWSER_LIBS}'], | |
| 25 COMPONENT_STATIC=not env.Bit('nacl_glibc')) | |
| 26 | |
| 27 untrusted_crash_dump_test = env.ComponentProgram( | |
| 28 'inbrowser_untrusted_crash_dump_test', | |
| 29 [env.ComponentObject( | |
| 30 'untrusted_crash_dump', | |
| 31 '${MAIN_DIR}/tests/untrusted_crash_dump/untrusted_crash_dump.c'), | |
| 32 env.ComponentObject( | |
| 33 'untrusted_crash_dump_test', | |
| 34 '${MAIN_DIR}/tests/untrusted_crash_dump/untrusted_crash_dump_test.c')], | |
| 35 EXTRA_LIBS=['untrusted_crash_dump_lib', | |
| 36 'srpc', 'platform', 'gio', 'imc', 'imc_syscalls', | |
| 37 '${PTHREAD_LIBS}', '${NON_PPAPI_BROWSER_LIBS}']) | |
| 38 | |
| 39 if env.Bit('nacl_glibc'): | |
| 40 golden = 'untrusted_crash_dump_test_glibc.golden' | |
| 41 else: | |
| 42 golden = 'untrusted_crash_dump_test_newlib.golden' | |
| 43 golden = '$MAIN_DIR/tests/untrusted_crash_dump/' + golden | |
| 44 | |
| 45 node = env.PPAPIBrowserTester( | |
| 46 'inbrowser_untrusted_crash_dump_test.out', | |
| 47 url='untrusted_crash_dump.html', | |
| 48 nmfs=['inbrowser_untrusted_crash_dump_test.nmf'], | |
| 49 nacl_exe_stdout={ | |
| 50 'file': ('${TARGET_ROOT}/test_results/' | |
| 51 'inbrowser_untrusted_crash_dump_test.stdout'), | |
| 52 'golden': golden, | |
| 53 'decode_crash_dump': True, | |
| 54 }, | |
| 55 with_exceptions=True, | |
| 56 files=[untrusted_crash_dump_test, | |
| 57 env.File('untrusted_crash_dump.html')]) | |
| 58 env.AddNodeToTestSuite( | |
| 59 node, ['chrome_browser_tests', 'exception_tests'], | |
| 60 'run_inbrowser_untrusted_crash_dump_test', | |
| 61 is_broken=env.PPAPIBrowserTesterIsBroken() or | |
| 62 env.Bit('running_on_valgrind') or is_broken) | |
| OLD | NEW |