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