Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: test/mac/gyptest-loadable-module-bundle-product-extension.py

Issue 516953002: Fix: xcode-ninja should copy the product extension to the wrapper project (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@Fix-Xcode-ninja-workspace-4
Patch Set: Rebase onto 421053005 Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pylib/gyp/xcode_ninja.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2014 Google Inc. All rights reserved. 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 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 Tests that loadable_modules don't collide when using the same name with 8 Tests that loadable_modules don't collide when using the same name with
9 different file extensions. 9 different file extensions.
10 """ 10 """
11 11
12 import TestGyp 12 import TestGyp
13 13
14 import os 14 import os
15 import struct 15 import struct
16 import sys 16 import sys
17 17
18 if sys.platform == 'darwin': 18 if sys.platform == 'darwin':
19 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) 19 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
20 20
21 # The xcode-ninja generator fails because it doesn't copy the extension 21 CHDIR = 'loadable-module-bundle-product-extension'
22 # cf. https://code.google.com/p/gyp/issues/detail?id=450 22 test.run_gyp('test.gyp',
23 if test.format == 'xcode-ninja': 23 '-G', 'xcode_ninja_target_pattern=^.*$',
24 test.skip_test() 24 chdir=CHDIR)
25 25
26 CHDIR = 'loadable-module-bundle-product-extension'
27 test.run_gyp('test.gyp', chdir=CHDIR)
28 test.build('test.gyp', test.ALL, chdir=CHDIR) 26 test.build('test.gyp', test.ALL, chdir=CHDIR)
29 27
30 test.must_exist(test.built_file_path('Collide.foo', chdir=CHDIR)) 28 test.must_exist(test.built_file_path('Collide.foo', chdir=CHDIR))
31 test.must_exist(test.built_file_path('Collide.bar', chdir=CHDIR)) 29 test.must_exist(test.built_file_path('Collide.bar', chdir=CHDIR))
32 30
33 test.pass_test() 31 test.pass_test()
OLDNEW
« no previous file with comments | « pylib/gyp/xcode_ninja.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698