| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 def ProcessOptions(options): | 148 def ProcessOptions(options): |
| 149 global VARIANT_FLAGS | 149 global VARIANT_FLAGS |
| 150 | 150 |
| 151 # Architecture and mode related stuff. | 151 # Architecture and mode related stuff. |
| 152 if options.arch_and_mode: | 152 if options.arch_and_mode: |
| 153 tokens = options.arch_and_mode.split(".") | 153 tokens = options.arch_and_mode.split(".") |
| 154 options.arch = tokens[0] | 154 options.arch = tokens[0] |
| 155 options.mode = tokens[1] | 155 options.mode = tokens[1] |
| 156 options.mode = options.mode.split(",") | 156 options.mode = options.mode.split(",") |
| 157 for mode in options.mode: | 157 for mode in options.mode: |
| 158 if not mode in ["debug", "release"]: | 158 if not mode.lower() in ["debug", "release"]: |
| 159 print "Unknown mode %s" % mode | 159 print "Unknown mode %s" % mode |
| 160 return False | 160 return False |
| 161 if options.arch in ["auto", "native"]: | 161 if options.arch in ["auto", "native"]: |
| 162 options.arch = ARCH_GUESS | 162 options.arch = ARCH_GUESS |
| 163 options.arch = options.arch.split(",") | 163 options.arch = options.arch.split(",") |
| 164 for arch in options.arch: | 164 for arch in options.arch: |
| 165 if not arch in SUPPORTED_ARCHS: | 165 if not arch in SUPPORTED_ARCHS: |
| 166 print "Unknown architecture %s" % arch | 166 print "Unknown architecture %s" % arch |
| 167 return False | 167 return False |
| 168 | 168 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 except KeyboardInterrupt: | 360 except KeyboardInterrupt: |
| 361 return 1 | 361 return 1 |
| 362 | 362 |
| 363 if options.time: | 363 if options.time: |
| 364 verbose.PrintTestDurations(suites, overall_duration) | 364 verbose.PrintTestDurations(suites, overall_duration) |
| 365 return exit_code | 365 return exit_code |
| 366 | 366 |
| 367 | 367 |
| 368 if __name__ == "__main__": | 368 if __name__ == "__main__": |
| 369 sys.exit(Main()) | 369 sys.exit(Main()) |
| OLD | NEW |