OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 |
| 3 # Copyright (c) 2014 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 ios app extensions are built correctly. |
| 9 """ |
| 10 |
| 11 import TestGyp |
| 12 import TestMac |
| 13 |
| 14 import sys |
| 15 if sys.platform == 'darwin' and TestMac.Xcode.Version()>="0600": |
| 16 test = TestGyp.TestGyp(formats=['ninja', 'xcode']) |
| 17 |
| 18 test.run_gyp('extension.gyp', chdir='extension') |
| 19 |
| 20 test.build('extension.gyp', 'ExtensionContainer', chdir='extension') |
| 21 |
| 22 # Test that the extension is .appex |
| 23 test.built_file_must_exist( |
| 24 'ExtensionContainer.app/PlugIns/ActionExtension.appex', |
| 25 chdir='extension') |
| 26 |
| 27 test.pass_test() |
| 28 |
OLD | NEW |