| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 # Copyright 2016 Google Inc. All rights reserved. | 3 # Copyright 2016 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 """ | 7 """ |
| 8 Verifies that ios app frameworks are built correctly. | 8 Verifies that ios app frameworks are built correctly. |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 import TestGyp | 11 import TestGyp |
| 12 import TestMac | 12 import TestMac |
| 13 import subprocess | 13 import subprocess |
| 14 import sys | 14 import sys |
| 15 | 15 |
| 16 if sys.platform == 'darwin' and TestMac.Xcode.Version()>="0700": | 16 if sys.platform == 'darwin' and TestMac.Xcode.Version()>="0700": |
| 17 | 17 |
| 18 test = TestGyp.TestGyp(formats=['ninja']) | 18 test = TestGyp.TestGyp(formats=['ninja']) |
| 19 if test.format == 'xcode-ninja': | 19 if test.format == 'xcode-ninja': |
| 20 test.skip_test() | 20 test.skip_test() |
| 21 | 21 |
| 22 test.run_gyp('framework.gyp', chdir='framework') | 22 test.run_gyp('framework.gyp', chdir='framework') |
| 23 | 23 |
| 24 test.build('framework.gyp', 'iOSFramework', chdir='framework') | 24 test.build('framework.gyp', 'iOSFramework', chdir='framework') |
| 25 | 25 |
| 26 test.built_file_must_exist( | 26 test.built_file_must_exist( |
| 27 'iOSFramework.framework/Headers/iOSFramework.h', | 27 'iOSFramework.framework/Headers/iOSFramework.h', |
| 28 chdir='framework') | 28 chdir='framework') |
| 29 test.built_file_must_exist( | 29 test.built_file_must_exist( |
| 30 'iOSFramework.framework/Headers/Thing.h', |
| 31 chdir='framework') |
| 32 test.built_file_must_exist( |
| 30 'iOSFramework.framework/iOSFramework', | 33 'iOSFramework.framework/iOSFramework', |
| 31 chdir='framework') | 34 chdir='framework') |
| 32 | 35 |
| 33 test.pass_test() | 36 test.pass_test() |
| 34 | 37 |
| OLD | NEW |