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

Side by Side Diff: test/same-gyp-name/gyptest-default.py

Issue 10911280: Adding a test to cover XCode UID collisions. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 3 months 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2011 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 Build a .gyp that depends on 2 gyp files with the same name. 8 Build a .gyp that depends on 2 gyp files with the same name.
9 """ 9 """
10 10
11 import TestGyp 11 import TestGyp
12 12
13 # This causes a problem on XCode (duplicate ID). 13 test = TestGyp.TestGyp()
14 # See http://code.google.com/p/gyp/issues/detail?id=114
15 test = TestGyp.TestGyp(formats=['!xcode'])
16 14
17 test.run_gyp('all.gyp', chdir='src') 15 test.run_gyp('all.gyp', chdir='src')
18 16
19 test.relocate('src', 'relocate/src') 17 test.relocate('src', 'relocate/src')
20 18
21 test.build('all.gyp', chdir='relocate/src') 19 test.build('all.gyp', chdir='relocate/src')
22 20
23 expect1 = """\ 21 expect1 = """\
24 Hello from main1.cc 22 Hello from main1.cc
25 """ 23 """
26 24
27 expect2 = """\ 25 expect2 = """\
28 Hello from main2.cc 26 Hello from main2.cc
29 """ 27 """
30 28
31 test.run_built_executable('program1', chdir='relocate/src', stdout=expect1) 29 if test.format == 'xcode':
32 test.run_built_executable('program2', chdir='relocate/src', stdout=expect2) 30 chdir1 = 'relocate/src/subdir1'
31 chdir2 = 'relocate/src/subdir2'
32 else:
33 chdir1 = chdir2 = 'relocate/src'
34
35 test.run_built_executable('program1', chdir=chdir1, stdout=expect1)
36 test.run_built_executable('program2', chdir=chdir2, stdout=expect2)
33 37
34 test.pass_test() 38 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698