OLD | NEW |
---|---|
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 Loading... | |
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 node = debug_env.CommandTestFileDumpCheck('dwarf_method_ptr_objdump.out', | |
515 dwarf_method_ptr_nexe, | |
516 debug_env.File('dwarf_method_ptr.cc' ), | |
Derek Schuff
2015/03/23 16:25:07
80 col
Mircea Trofin
2015/03/23 17:27:20
Done.
| |
517 '-W', True) | |
518 debug_env.AddNodeToTestSuite(node, | |
519 ['small_tests', 'toolchain_tests'], | |
520 'run_dwarf_method_ptr_objdump_test') | |
502 | 521 |
503 if env.Bit('nacl_glibc'): | 522 if env.Bit('nacl_glibc'): |
504 nexe = env.ComponentProgram('byteswap64', 'byteswap64.c', | 523 nexe = env.ComponentProgram('byteswap64', 'byteswap64.c', |
505 EXTRA_LIBS=['${NONIRT_LIBS}']) | 524 EXTRA_LIBS=['${NONIRT_LIBS}']) |
506 node = env.CommandSelLdrTestNacl('byteswap64.out', nexe) | 525 node = env.CommandSelLdrTestNacl('byteswap64.out', nexe) |
507 env.AddNodeToTestSuite(node, | 526 env.AddNodeToTestSuite(node, |
508 ['toolchain_tests', 'small_tests'], | 527 ['toolchain_tests', 'small_tests'], |
509 'run_byteswap64_test') | 528 'run_byteswap64_test') |
510 | 529 |
511 if ((env.Bit('nacl_glibc') or not env.Bit('bitcode')) | 530 if ((env.Bit('nacl_glibc') or not env.Bit('bitcode')) |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
644 mixedlink_env.Append(CCFLAGS=['-Wt,-force-align-stack']) | 663 mixedlink_env.Append(CCFLAGS=['-Wt,-force-align-stack']) |
645 nexe = mixedlink_env.ComponentProgram( | 664 nexe = mixedlink_env.ComponentProgram( |
646 'stackalign_test', | 665 'stackalign_test', |
647 ['call_with_misaligned_stack.S', 'stackalign_test.c'], | 666 ['call_with_misaligned_stack.S', 'stackalign_test.c'], |
648 EXTRA_LIBS=['${NONIRT_LIBS}']) | 667 EXTRA_LIBS=['${NONIRT_LIBS}']) |
649 node = mixedlink_env.CommandSelLdrTestNacl('stackalign.out', nexe) | 668 node = mixedlink_env.CommandSelLdrTestNacl('stackalign.out', nexe) |
650 mixedlink_env.AddNodeToTestSuite( | 669 mixedlink_env.AddNodeToTestSuite( |
651 node, | 670 node, |
652 ['nonpexe_tests', 'small_tests', 'toolchain_tests'], | 671 ['nonpexe_tests', 'small_tests', 'toolchain_tests'], |
653 'run_stackalign_test') | 672 'run_stackalign_test') |
OLD | NEW |