| 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 os | 6 import os |
| 7 Import('env') | 7 Import('env') |
| 8 | 8 |
| 9 if env.Bit('linux'): | 9 if env.Bit('linux'): |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 # TODO(cbiffle): get this wrapped in QEMU. | 62 # TODO(cbiffle): get this wrapped in QEMU. |
| 63 #env.AddNodeToTestSuite(address_set_test, ['small_tests'], 'address_set_test') | 63 #env.AddNodeToTestSuite(address_set_test, ['small_tests'], 'address_set_test') |
| 64 | 64 |
| 65 validator_tests = { | 65 validator_tests = { |
| 66 'test_external_jumps': 1, | 66 'test_external_jumps': 1, |
| 67 'test_forbidden_instructions': 1, | 67 'test_forbidden_instructions': 1, |
| 68 'test_internal_jumps': 1, | 68 'test_internal_jumps': 1, |
| 69 'test_sp_updates': 1, | 69 'test_sp_updates': 1, |
| 70 'test_stores': 1, | 70 'test_stores': 1, |
| 71 'test_vector_stores': 1, | 71 'test_vector_stores': 1, |
| 72 'test_loads': 1, |
| 73 'test_vector_loads': 1, |
| 72 } | 74 } |
| 73 | 75 |
| 74 for test, exit_status in validator_tests.iteritems(): | 76 for test, exit_status in validator_tests.iteritems(): |
| 75 node = env.CommandTest( | 77 node = env.CommandTest( |
| 76 test + '_actual.out', | 78 test + '_actual.out', |
| 77 [ncval, env.File('testdata/' + test + '.nexe')], | 79 [ncval, env.File('testdata/' + test + '.nexe')], |
| 78 exit_status = str(exit_status), | 80 exit_status = str(exit_status), |
| 79 filter_regex = "'^ncval'", | 81 filter_regex = "'^ncval'", |
| 80 # NOTE: all stdout_golden are currently empty | 82 # NOTE: all stdout_golden are currently empty |
| 81 stdout_golden = env.File('testdata/' + test + '.out'), | 83 stdout_golden = env.File('testdata/' + test + '.out'), |
| (...skipping 19 matching lines...) Expand all Loading... |
| 101 # a program of the same name. | 103 # a program of the same name. |
| 102 validator_tests_exe = gtest_env.ComponentProgram('arm_validator_tests', | 104 validator_tests_exe = gtest_env.ComponentProgram('arm_validator_tests', |
| 103 ['validator_tests.cc'], | 105 ['validator_tests.cc'], |
| 104 EXTRA_LIBS=['gtest', 'arm_validator_core']) | 106 EXTRA_LIBS=['gtest', 'arm_validator_core']) |
| 105 | 107 |
| 106 test_node = gtest_env.CommandTest( | 108 test_node = gtest_env.CommandTest( |
| 107 'validator_tests.out', | 109 'validator_tests.out', |
| 108 command=[validator_tests_exe]) | 110 command=[validator_tests_exe]) |
| 109 gtest_env.AddNodeToTestSuite(test_node, ['small_tests'], | 111 gtest_env.AddNodeToTestSuite(test_node, ['small_tests'], |
| 110 'run_arm_validator_tests') | 112 'run_arm_validator_tests') |
| OLD | NEW |