OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 |
| 3 # Copyright (c) 2012 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 bundles are built correctly. |
| 9 """ |
| 10 |
| 11 import TestGyp |
| 12 |
| 13 import sys |
| 14 |
| 15 if sys.platform == 'darwin': |
| 16 expected_error = 'auto property synthesis is synthesizing property not ' \ |
| 17 'explicitly synthesized' |
| 18 |
| 19 test = TestGyp.TestGyp(formats=['xcode', 'ninja']) |
| 20 |
| 21 test.run_gyp('test-error.gyp', chdir='app-bundle') |
| 22 |
| 23 test.build('test-error.gyp', test.ALL, chdir='app-bundle') |
| 24 |
| 25 if expected_error in test.stdout(): |
| 26 test.pass_test() |
| 27 else: |
| 28 test.fail_test() |
OLD | NEW |