Index: test/mac/gyptest-swift.py |
diff --git a/test/linux/gyptest-ldflags-duplicates.py b/test/mac/gyptest-swift.py |
similarity index 51% |
copy from test/linux/gyptest-ldflags-duplicates.py |
copy to test/mac/gyptest-swift.py |
index 43a4607adf9f7b704f8014b97235457b5c254358..6541160ca1cc6eedc1e3b91b2f22c1a193969daa 100644 |
--- a/test/linux/gyptest-ldflags-duplicates.py |
+++ b/test/mac/gyptest-swift.py |
@@ -5,18 +5,18 @@ |
# found in the LICENSE file. |
""" |
-Verifies duplicate ldflags are not removed. |
+Verifies that a swift framework builds correctly. |
""" |
import TestGyp |
import sys |
-if sys.platform.startswith('linux'): |
- test = TestGyp.TestGyp() |
+if sys.platform == 'darwin': |
+ test = TestGyp.TestGyp(formats=['ninja', 'xcode']) |
- CHDIR = 'ldflags-duplicates' |
- test.run_gyp('test.gyp', chdir=CHDIR) |
- test.build('test.gyp', chdir=CHDIR) |
+ test.run_gyp('test.gyp', chdir='swift') |
+ |
+ test.build('test.gyp', test.ALL, chdir='swift') |
test.pass_test() |