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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 j = (j+1) % len(envlist) | 100 j = (j+1) % len(envlist) |
101 | 101 |
102 # Create the module component objects | 102 # Create the module component objects |
103 modules = [] | 103 modules = [] |
104 for i in xrange(num_modules): | 104 for i in xrange(num_modules): |
105 modules.append(module_env[i].ComponentObject(nodes[i+1])) | 105 modules.append(module_env[i].ComponentObject(nodes[i+1])) |
106 | 106 |
107 # Compile callingconv.c | 107 # Compile callingconv.c |
108 callingconv = link_env.ComponentObject('callingconv.c') | 108 callingconv = link_env.ComponentObject('callingconv.c') |
109 | 109 |
110 prog = link_env.ComponentProgram('callingconv.nexe', | 110 prog = link_env.ComponentProgram('callingconv', |
111 [callingconv] + modules) | 111 [callingconv] + modules) |
112 | 112 |
113 node = link_env.CommandSelLdrTestNacl( | 113 node = link_env.CommandSelLdrTestNacl( |
114 'callingconv.out', | 114 'callingconv.out', |
115 command=[prog], | 115 prog, |
116 stdout_golden=nodes[0]) | 116 stdout_golden=nodes[0]) |
117 | 117 |
118 env.AddNodeToTestSuite(node, ['medium_tests'], 'run_callingconv_test', | 118 env.AddNodeToTestSuite(node, ['medium_tests'], 'run_callingconv_test', |
119 # This test takes too long to compile for ARM | 119 # This test takes too long to compile for ARM |
120 # and the resulting code doesn't pass this test. | 120 # and the resulting code doesn't pass this test. |
121 is_broken=env.Bit('target_arm')) | 121 is_broken=env.Bit('target_arm')) |
OLD | NEW |