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

Side by Side Diff: test/ios/gyptest-swift.py

Issue 1160773005: Support for Swift language and Clang modules for ninja generator. Base URL: https://chromium.googlesource.com/external/gyp@master
Patch Set: Created 5 years, 6 months 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
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
3 # Copyright (c) 2015 Google Inc. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 """
8 Verifies that a swift framework builds correctly.
9 """
10
11 import TestGyp
12
13 import collections
14 import sys
15
16 if sys.platform == 'darwin':
17 test = TestGyp.TestGyp(formats=['ninja', 'xcode'])
18
19 test_cases = [('Default', 'iphonesimulator'), ('Default', 'iphoneos')]
20
21 test.run_gyp('test.gyp', chdir='swift')
22
23 for configuration, sdk in test_cases:
24 kwds = collections.defaultdict(list)
25 if test.format == 'xcode':
26 kwds['arguments'].extend(['-sdk', sdk])
27 if test.format == 'ninja':
28 configuration = configuration + '-' + sdk
29
30 test.set_configuration(configuration)
31 test.build('test.gyp', test.ALL, chdir='swift', **kwds)
32
33 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698