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

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

Issue 1021303003: Enable using the toolchain (llvm) provided FileCheck. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Incorporated feedback. Created 5 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
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 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 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 Import('env') 6 Import('env')
7 7
8 # force inclusion of entire library, so that we can validate it 8 # force inclusion of entire library, so that we can validate it
9 # NOTE: This approach does not work for -lc because of tons of 9 # NOTE: This approach does not work for -lc because of tons of
10 # undefined symbols which would have to be stubbed out 10 # undefined symbols which would have to be stubbed out
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 debug_env.AddNodeToTestSuite(node, 492 debug_env.AddNodeToTestSuite(node,
493 ['toolchain_tests', 'small_tests'], 493 ['toolchain_tests', 'small_tests'],
494 'run_dwarf_local_var_run_test') 494 'run_dwarf_local_var_run_test')
495 node = debug_env.CommandTestFileDumpCheck('dwarf_local_var_objdump.out', 495 node = debug_env.CommandTestFileDumpCheck('dwarf_local_var_objdump.out',
496 dwarf_local_var_nexe, 496 dwarf_local_var_nexe,
497 debug_env.File('dwarf_local_var.c'), 497 debug_env.File('dwarf_local_var.c'),
498 '-W') 498 '-W')
499 debug_env.AddNodeToTestSuite(node, 499 debug_env.AddNodeToTestSuite(node,
500 ['small_tests', 'toolchain_tests'], 500 ['small_tests', 'toolchain_tests'],
501 'run_dwarf_local_var_objdump_test') 501 'run_dwarf_local_var_objdump_test')
502 dwarf_method_ptr_nexe = debug_env.ComponentProgram(
503 'dwarf_method_ptr',
504 ['dwarf_method_ptr.cc'],
505 EXTRA_LIBS=['${NONIRT_LIBS}'])
506
507 # Sanity-check -- make sure it runs.
508 node = debug_env.CommandSelLdrTestNacl('dwarf_method_ptr_run.out',
509 dwarf_method_ptr_nexe,
510 exit_status=42)
511 debug_env.AddNodeToTestSuite(node,
512 ['toolchain_tests', 'small_tests'],
513 'run_dwarf_method_ptr_run_test')
514
515 file = debug_env.File('dwarf_method_ptr.cc')
516 node = debug_env.CommandTestFileDumpCheck('dwarf_method_ptr_objdump.out',
517 dwarf_method_ptr_nexe,
518 file,
519 '-W', True)
Derek Schuff 2015/03/23 17:54:02 make this "True" a kwarg so it's clear that it ref
520 debug_env.AddNodeToTestSuite(node,
521 ['small_tests', 'toolchain_tests'],
522 'run_dwarf_method_ptr_objdump_test')
502 523
503 if env.Bit('nacl_glibc'): 524 if env.Bit('nacl_glibc'):
504 nexe = env.ComponentProgram('byteswap64', 'byteswap64.c', 525 nexe = env.ComponentProgram('byteswap64', 'byteswap64.c',
505 EXTRA_LIBS=['${NONIRT_LIBS}']) 526 EXTRA_LIBS=['${NONIRT_LIBS}'])
506 node = env.CommandSelLdrTestNacl('byteswap64.out', nexe) 527 node = env.CommandSelLdrTestNacl('byteswap64.out', nexe)
507 env.AddNodeToTestSuite(node, 528 env.AddNodeToTestSuite(node,
508 ['toolchain_tests', 'small_tests'], 529 ['toolchain_tests', 'small_tests'],
509 'run_byteswap64_test') 530 'run_byteswap64_test')
510 531
511 if ((env.Bit('nacl_glibc') or not env.Bit('bitcode')) 532 if ((env.Bit('nacl_glibc') or not env.Bit('bitcode'))
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 mixedlink_env.Append(CCFLAGS=['-Wt,-force-align-stack']) 665 mixedlink_env.Append(CCFLAGS=['-Wt,-force-align-stack'])
645 nexe = mixedlink_env.ComponentProgram( 666 nexe = mixedlink_env.ComponentProgram(
646 'stackalign_test', 667 'stackalign_test',
647 ['call_with_misaligned_stack.S', 'stackalign_test.c'], 668 ['call_with_misaligned_stack.S', 'stackalign_test.c'],
648 EXTRA_LIBS=['${NONIRT_LIBS}']) 669 EXTRA_LIBS=['${NONIRT_LIBS}'])
649 node = mixedlink_env.CommandSelLdrTestNacl('stackalign.out', nexe) 670 node = mixedlink_env.CommandSelLdrTestNacl('stackalign.out', nexe)
650 mixedlink_env.AddNodeToTestSuite( 671 mixedlink_env.AddNodeToTestSuite(
651 node, 672 node,
652 ['nonpexe_tests', 'small_tests', 'toolchain_tests'], 673 ['nonpexe_tests', 'small_tests', 'toolchain_tests'],
653 'run_stackalign_test') 674 'run_stackalign_test')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698