| 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']: | 151 if not arch in ['ia32', 'x64', 'arm', 'mips', '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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 shell=True, | 256 shell=True, |
| 257 cwd=workspace, | 257 cwd=workspace, |
| 258 env=env) | 258 env=env) |
| 259 returncodes = child.wait() | 259 returncodes = child.wait() |
| 260 | 260 |
| 261 return returncodes | 261 return returncodes |
| 262 | 262 |
| 263 | 263 |
| 264 if __name__ == '__main__': | 264 if __name__ == '__main__': |
| 265 sys.exit(Main()) | 265 sys.exit(Main()) |
| OLD | NEW |