Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: gyptest.py

Issue 421453003: Add TestGypXcodeNinja to run tests against the xcode-ninja generator (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase onto origin/master Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | test/actions-bare/gyptest-bare.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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())
OLDNEW
« no previous file with comments | « no previous file | test/actions-bare/gyptest-bare.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698