OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2012 Google Inc. All rights reserved. | 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 | 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 dependent Xcode settings are processed correctly. | 8 Verifies that dependent Xcode settings are processed correctly. |
9 """ | 9 """ |
10 | 10 |
| 11 from __future__ import print_function |
| 12 |
11 import TestGyp | 13 import TestGyp |
12 import TestMac | 14 import TestMac |
13 | 15 |
14 import subprocess | 16 import subprocess |
15 import sys | 17 import sys |
16 | 18 |
17 if sys.platform == 'darwin': | 19 if sys.platform == 'darwin': |
18 print "This test is currently disabled: https://crbug.com/483696." | 20 print("This test is currently disabled: https://crbug.com/483696.") |
19 sys.exit(0) | 21 sys.exit(0) |
20 | 22 |
21 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) | 23 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) |
22 | 24 |
23 CHDIR = 'xcode-env-order' | 25 CHDIR = 'xcode-env-order' |
24 INFO_PLIST_PATH = 'Test.app/Contents/Info.plist' | 26 INFO_PLIST_PATH = 'Test.app/Contents/Info.plist' |
25 | 27 |
26 test.run_gyp('test.gyp', chdir=CHDIR) | 28 test.run_gyp('test.gyp', chdir=CHDIR) |
27 test.build('test.gyp', test.ALL, chdir=CHDIR) | 29 test.build('test.gyp', test.ALL, chdir=CHDIR) |
28 | 30 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 # The bug has been fixed by Xcode version 5.0.0. | 86 # The bug has been fixed by Xcode version 5.0.0. |
85 test.must_contain(info_plist, '''\ | 87 test.must_contain(info_plist, '''\ |
86 \t<key>BareProcessedKey3</key> | 88 \t<key>BareProcessedKey3</key> |
87 \t<string>com.apple.product-type.application:D:/Source/Project/Test</string>''') | 89 \t<string>com.apple.product-type.application:D:/Source/Project/Test</string>''') |
88 | 90 |
89 test.must_contain(info_plist, '''\ | 91 test.must_contain(info_plist, '''\ |
90 \t<key>MixedProcessedKey</key> | 92 \t<key>MixedProcessedKey</key> |
91 \t<string>/Source/Project:Test:mh_execute</string>''') | 93 \t<string>/Source/Project:Test:mh_execute</string>''') |
92 | 94 |
93 test.pass_test() | 95 test.pass_test() |
OLD | NEW |