| 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 if env.Bit('bitcode') or env.Bit('nacl_clang'): |
| 503 dwarf_method_ptr_nexe = debug_env.ComponentProgram( |
| 504 'dwarf_method_ptr', |
| 505 ['dwarf_method_ptr.cc'], |
| 506 EXTRA_LIBS=['${NONIRT_LIBS}']) |
| 507 |
| 508 # Sanity-check -- make sure it runs. |
| 509 node = debug_env.CommandSelLdrTestNacl('dwarf_method_ptr_run.out', |
| 510 dwarf_method_ptr_nexe, |
| 511 exit_status=42) |
| 512 debug_env.AddNodeToTestSuite(node, |
| 513 ['toolchain_tests', 'small_tests'], |
| 514 'run_dwarf_method_ptr_run_test') |
| 515 |
| 516 file = debug_env.File('dwarf_method_ptr.cc') |
| 517 node = debug_env.CommandTestFileDumpCheck('dwarf_method_ptr_objdump.out', |
| 518 dwarf_method_ptr_nexe, |
| 519 file, |
| 520 '-W', |
| 521 use_llvm_filecheck=True) |
| 522 debug_env.AddNodeToTestSuite(node, |
| 523 ['small_tests', 'toolchain_tests'], |
| 524 'run_dwarf_method_ptr_objdump_test') |
| 502 | 525 |
| 503 if env.Bit('nacl_glibc'): | 526 if env.Bit('nacl_glibc'): |
| 504 nexe = env.ComponentProgram('byteswap64', 'byteswap64.c', | 527 nexe = env.ComponentProgram('byteswap64', 'byteswap64.c', |
| 505 EXTRA_LIBS=['${NONIRT_LIBS}']) | 528 EXTRA_LIBS=['${NONIRT_LIBS}']) |
| 506 node = env.CommandSelLdrTestNacl('byteswap64.out', nexe) | 529 node = env.CommandSelLdrTestNacl('byteswap64.out', nexe) |
| 507 env.AddNodeToTestSuite(node, | 530 env.AddNodeToTestSuite(node, |
| 508 ['toolchain_tests', 'small_tests'], | 531 ['toolchain_tests', 'small_tests'], |
| 509 'run_byteswap64_test') | 532 'run_byteswap64_test') |
| 510 | 533 |
| 511 if ((env.Bit('nacl_glibc') or not env.Bit('bitcode')) | 534 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']) | 667 mixedlink_env.Append(CCFLAGS=['-Wt,-force-align-stack']) |
| 645 nexe = mixedlink_env.ComponentProgram( | 668 nexe = mixedlink_env.ComponentProgram( |
| 646 'stackalign_test', | 669 'stackalign_test', |
| 647 ['call_with_misaligned_stack.S', 'stackalign_test.c'], | 670 ['call_with_misaligned_stack.S', 'stackalign_test.c'], |
| 648 EXTRA_LIBS=['${NONIRT_LIBS}']) | 671 EXTRA_LIBS=['${NONIRT_LIBS}']) |
| 649 node = mixedlink_env.CommandSelLdrTestNacl('stackalign.out', nexe) | 672 node = mixedlink_env.CommandSelLdrTestNacl('stackalign.out', nexe) |
| 650 mixedlink_env.AddNodeToTestSuite( | 673 mixedlink_env.AddNodeToTestSuite( |
| 651 node, | 674 node, |
| 652 ['nonpexe_tests', 'small_tests', 'toolchain_tests'], | 675 ['nonpexe_tests', 'small_tests', 'toolchain_tests'], |
| 653 'run_stackalign_test') | 676 'run_stackalign_test') |
| OLD | NEW |