| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright 2011 The Native Client Authors. All rights reserved. | 2 # Copyright 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('env') | 6 Import('env') |
| 7 | 7 |
| 8 # If this test is failing on the bots, you can find the seed | 8 # If this test is failing on the bots, you can find the seed |
| 9 # from the output of the bot. Look for "--seed=". | 9 # from the output of the bot. Look for "--seed=". |
| 10 # To reproduce the exact problem, set settings['seed'] below | 10 # To reproduce the exact problem, set settings['seed'] below |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 j = (j+1) % len(envlist) | 98 j = (j+1) % len(envlist) |
| 99 | 99 |
| 100 # Create the module component objects | 100 # Create the module component objects |
| 101 modules = [] | 101 modules = [] |
| 102 for i in xrange(num_modules): | 102 for i in xrange(num_modules): |
| 103 modules.append(module_env[i].ComponentObject(nodes[i+1])) | 103 modules.append(module_env[i].ComponentObject(nodes[i+1])) |
| 104 | 104 |
| 105 # Compile callingconv.c | 105 # Compile callingconv.c |
| 106 callingconv = link_env.ComponentObject('callingconv.c') | 106 callingconv = link_env.ComponentObject('callingconv.c') |
| 107 | 107 |
| 108 prog = link_env.ComponentProgram('callingconv.nexe', | 108 prog = link_env.ComponentProgram('callingconv', |
| 109 [callingconv] + modules) | 109 [callingconv] + modules) |
| 110 | 110 |
| 111 node = link_env.CommandSelLdrTestNacl( | 111 node = link_env.CommandSelLdrTestNacl( |
| 112 'callingconv.out', | 112 'callingconv.out', |
| 113 command=[prog], | 113 prog, |
| 114 stdout_golden=nodes[0]) | 114 stdout_golden=nodes[0]) |
| 115 | 115 |
| 116 env.AddNodeToTestSuite(node, ['medium_tests'], 'run_callingconv_test', | 116 env.AddNodeToTestSuite(node, ['medium_tests'], 'run_callingconv_test', |
| 117 # This test takes too long to compile for ARM | 117 # This test takes too long to compile for ARM |
| 118 # and the resulting code doesn't pass this test. | 118 # and the resulting code doesn't pass this test. |
| 119 is_broken=env.Bit('target_arm')) | 119 is_broken=env.Bit('target_arm')) |
| OLD | NEW |