OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 the V8 project authors. All rights reserved. |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 tokens = options.arch_and_mode.split(".") | 141 tokens = options.arch_and_mode.split(".") |
142 options.arch = tokens[0] | 142 options.arch = tokens[0] |
143 options.mode = tokens[1] | 143 options.mode = tokens[1] |
144 options.mode = options.mode.split(',') | 144 options.mode = options.mode.split(',') |
145 options.arch = options.arch.split(',') | 145 options.arch = options.arch.split(',') |
146 for mode in options.mode: | 146 for mode in options.mode: |
147 if not mode.lower() in ['debug', 'release']: | 147 if not mode.lower() in ['debug', 'release']: |
148 print "Unknown mode %s" % mode | 148 print "Unknown mode %s" % mode |
149 return False | 149 return False |
150 for arch in options.arch: | 150 for arch in options.arch: |
151 if not arch in ['ia32', 'x64', 'arm', 'mips', 'android']: | 151 if not arch in ['ia32', 'x64', 'arm', 'mipsel', 'android']: |
152 print "Unknown architecture %s" % arch | 152 print "Unknown architecture %s" % arch |
153 return False | 153 return False |
154 if options.buildbot: | 154 if options.buildbot: |
155 # Buildbots run presubmit tests as a separate step. | 155 # Buildbots run presubmit tests as a separate step. |
156 options.no_presubmit = True | 156 options.no_presubmit = True |
157 return True | 157 return True |
158 | 158 |
159 | 159 |
160 def PassOnOptions(options): | 160 def PassOnOptions(options): |
161 result = [] | 161 result = [] |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 shell=True, | 257 shell=True, |
258 cwd=workspace, | 258 cwd=workspace, |
259 env=env) | 259 env=env) |
260 returncodes = child.wait() | 260 returncodes = child.wait() |
261 | 261 |
262 return returncodes | 262 return returncodes |
263 | 263 |
264 | 264 |
265 if __name__ == '__main__': | 265 if __name__ == '__main__': |
266 sys.exit(Main()) | 266 sys.exit(Main()) |
OLD | NEW |