| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 # Copyright (c) 2012 Google Inc. All rights reserved. | 3 # Copyright (c) 2012 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 __doc__ = """ | 7 __doc__ = """ |
| 8 gyptest.py -- test runner for GYP tests. | 8 gyptest.py -- test runner for GYP tests. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 # TODO: not duplicate this mapping from pylib/gyp/__init__.py | 217 # TODO: not duplicate this mapping from pylib/gyp/__init__.py |
| 218 format_list = { | 218 format_list = { |
| 219 'aix5': ['make'], | 219 'aix5': ['make'], |
| 220 'freebsd7': ['make'], | 220 'freebsd7': ['make'], |
| 221 'freebsd8': ['make'], | 221 'freebsd8': ['make'], |
| 222 'openbsd5': ['make'], | 222 'openbsd5': ['make'], |
| 223 'cygwin': ['msvs'], | 223 'cygwin': ['msvs'], |
| 224 'win32': ['msvs', 'ninja'], | 224 'win32': ['msvs', 'ninja'], |
| 225 'linux2': ['make', 'ninja'], | 225 'linux2': ['make', 'ninja'], |
| 226 'linux3': ['make', 'ninja'], | 226 'linux3': ['make', 'ninja'], |
| 227 'darwin': ['make', 'ninja', 'xcode'], | 227 'darwin': ['make', 'ninja', 'xcode', 'xcode-ninja'], |
| 228 }[sys.platform] | 228 }[sys.platform] |
| 229 | 229 |
| 230 for format in format_list: | 230 for format in format_list: |
| 231 os.environ['TESTGYP_FORMAT'] = format | 231 os.environ['TESTGYP_FORMAT'] = format |
| 232 if not opts.quiet: | 232 if not opts.quiet: |
| 233 sys.stdout.write('TESTGYP_FORMAT=%s\n' % format) | 233 sys.stdout.write('TESTGYP_FORMAT=%s\n' % format) |
| 234 | 234 |
| 235 gyp_options = [] | 235 gyp_options = [] |
| 236 for option in opts.gyp_option: | 236 for option in opts.gyp_option: |
| 237 gyp_options += ['-G', option] | 237 gyp_options += ['-G', option] |
| (...skipping 27 matching lines...) Expand all Loading... |
| 265 report("No result from", no_result) | 265 report("No result from", no_result) |
| 266 | 266 |
| 267 if failed: | 267 if failed: |
| 268 return 1 | 268 return 1 |
| 269 else: | 269 else: |
| 270 return 0 | 270 return 0 |
| 271 | 271 |
| 272 | 272 |
| 273 if __name__ == "__main__": | 273 if __name__ == "__main__": |
| 274 sys.exit(main()) | 274 sys.exit(main()) |
| OLD | NEW |