OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 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 platform | 6 import platform |
7 import os | 7 import os |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 # Do not run when building tools to run on x86-32 but to analyze the | 646 # Do not run when building tools to run on x86-32 but to analyze the |
647 # arm instruction set | 647 # arm instruction set |
648 if not env.CrossToolsBuild(): | 648 if not env.CrossToolsBuild(): |
649 node = env.CommandSelLdrTestNacl( | 649 node = env.CommandSelLdrTestNacl( |
650 'fuzz_nullptr_test.out', | 650 'fuzz_nullptr_test.out', |
651 env.File(arch_testdata_dir + '/nullptr.nexe'), | 651 env.File(arch_testdata_dir + '/nullptr.nexe'), |
652 sel_ldr_flags=['-F'], | 652 sel_ldr_flags=['-F'], |
653 exit_status = '0') | 653 exit_status = '0') |
654 env.AddNodeToTestSuite(node, ['small_tests'], 'run_fuzz_nullptr_test') | 654 env.AddNodeToTestSuite(node, ['small_tests'], 'run_fuzz_nullptr_test') |
655 | 655 |
| 656 if env.Bit('target_x86_64') and not env.CrossToolsBuild(): |
| 657 node = env.CommandSelLdrTestNacl( |
| 658 'hello_x32.out', |
| 659 env.File(os.path.join(arch_testdata_dir, 'hello_x32.nexe')), |
| 660 stdout_golden=env.File(os.path.join('${MAIN_DIR}', |
| 661 'tests/hello_world', |
| 662 'hello_world.stdout')) |
| 663 ) |
| 664 env.AddNodeToTestSuite(node, ['small_tests'], 'run_hello_x32_test') |
| 665 |
656 # ---------------------------------------------------------- | 666 # ---------------------------------------------------------- |
657 # Integration Tests | 667 # Integration Tests |
658 # ---------------------------------------------------------- | 668 # ---------------------------------------------------------- |
659 | 669 |
660 # Doesn't work on windows under coverage. | 670 # Doesn't work on windows under coverage. |
661 # TODO(bradnelson): fix this to work on windows under coverage. | 671 # TODO(bradnelson): fix this to work on windows under coverage. |
662 # NOTE: uses validator | 672 # NOTE: uses validator |
663 if ((not env.Bit('windows') or not env.Bit('coverage_enabled')) and | 673 if ((not env.Bit('windows') or not env.Bit('coverage_enabled')) and |
664 not env.CrossToolsBuild()): | 674 not env.CrossToolsBuild()): |
665 obj_proxy_test_inputs = [ 'fs/obj_proxy_test.c', ] | 675 obj_proxy_test_inputs = [ 'fs/obj_proxy_test.c', ] |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 expected_exit_status = 'sigabrt' | 853 expected_exit_status = 'sigabrt' |
844 node = env.CommandTest( | 854 node = env.CommandTest( |
845 'sel_ldr_thread_death_test.out', | 855 'sel_ldr_thread_death_test.out', |
846 command=[sel_ldr_thread_death_test_exe], | 856 command=[sel_ldr_thread_death_test_exe], |
847 exit_status=expected_exit_status) | 857 exit_status=expected_exit_status) |
848 | 858 |
849 # TODO(tuduce): Make it work on windows. | 859 # TODO(tuduce): Make it work on windows. |
850 env.AddNodeToTestSuite(node, ['medium_tests'], | 860 env.AddNodeToTestSuite(node, ['medium_tests'], |
851 'run_sel_ldr_thread_death_test', | 861 'run_sel_ldr_thread_death_test', |
852 is_broken=env.Bit('windows')) | 862 is_broken=env.Bit('windows')) |
OLD | NEW |