| Index: test/ios/gyptest-swift-wmo.py
|
| diff --git a/test/ios/gyptest-swift-wmo.py b/test/ios/gyptest-swift-wmo.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9a1f7229ed9412d6e8c891dfec5d732ee2e6ec86
|
| --- /dev/null
|
| +++ b/test/ios/gyptest-swift-wmo.py
|
| @@ -0,0 +1,40 @@
|
| +#!/usr/bin/env python
|
| +
|
| +# Copyright (c) 2015 Google Inc. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +"""
|
| +Verifies that a swift wmo target builds correctly.
|
| +"""
|
| +
|
| +import TestGyp
|
| +import TestMac
|
| +
|
| +import collections
|
| +import sys
|
| +
|
| +if sys.platform == 'darwin':
|
| + test = TestGyp.TestGyp(formats=['ninja', 'xcode'])
|
| +
|
| + test_cases = []
|
| +
|
| + # Run this for iOS on XCode 7.0 or greater
|
| + if TestMac.Xcode.Version() >= '0700':
|
| + test_cases = [('Default', 'iphonesimulator'), ('Default', 'iphoneos')]
|
| +
|
| + chdir = 'swift-wmo'
|
| +
|
| + test.run_gyp('test.gyp', chdir=chdir)
|
| +
|
| + for configuration, sdk in test_cases:
|
| + kwds = collections.defaultdict(list)
|
| + if test.format == 'xcode':
|
| + kwds['arguments'].extend(['-sdk', sdk])
|
| + if test.format == 'ninja':
|
| + configuration = configuration + '-' + sdk
|
| +
|
| + test.set_configuration(configuration)
|
| + test.build('test.gyp', test.ALL, chdir=chdir, **kwds)
|
| +
|
| + test.pass_test()
|
|
|