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