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

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

Issue 10198031: Exclude problematic formats from tests, rather than including all other platforms (Closed) Base URL: http://git.chromium.org/external/gyp.git@master
Patch Set: No need to check for gypd Created 8 years, 7 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
« no previous file with comments | « test/assembly/gyptest-assembly.py ('k') | test/same-gyp-name/gyptest-default.py » ('j') | 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) 2011 Google Inc. All rights reserved. 3 # Copyright (c) 2011 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 # This causes a problem on XCode (duplicate ID).
14 # See http://code.google.com/p/gyp/issues/detail?id=114 14 # See http://code.google.com/p/gyp/issues/detail?id=114
15 test = TestGyp.TestGyp(formats=['msvs', 'scons', 'make', 'ninja']) 15 test = TestGyp.TestGyp(formats=['!xcode'])
16 16
17 test.run_gyp('all.gyp', chdir='src') 17 test.run_gyp('all.gyp', chdir='src')
18 18
19 test.relocate('src', 'relocate/src') 19 test.relocate('src', 'relocate/src')
20 20
21 test.build('all.gyp', test.ALL, chdir='relocate/src') 21 test.build('all.gyp', test.ALL, chdir='relocate/src')
22 22
23 expect1 = """\ 23 expect1 = """\
24 Hello from main1.cc 24 Hello from main1.cc
25 """ 25 """
26 26
27 expect2 = """\ 27 expect2 = """\
28 Hello from main2.cc 28 Hello from main2.cc
29 """ 29 """
30 30
31 test.run_built_executable('program1', chdir='relocate/src', stdout=expect1) 31 test.run_built_executable('program1', chdir='relocate/src', stdout=expect1)
32 test.run_built_executable('program2', chdir='relocate/src', stdout=expect2) 32 test.run_built_executable('program2', chdir='relocate/src', stdout=expect2)
33 33
34 test.pass_test() 34 test.pass_test()
OLDNEW
« no previous file with comments | « test/assembly/gyptest-assembly.py ('k') | test/same-gyp-name/gyptest-default.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698