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

Side by Side Diff: test/mac/gyptest-global-settings.py

Issue 421453003: Add TestGypXcodeNinja to run tests against the xcode-ninja generator (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase onto origin/master Created 6 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
OLDNEW
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 the global xcode_settings processing doesn't throw. 8 Verifies that the global xcode_settings processing doesn't throw.
9 Regression test for http://crbug.com/109163 9 Regression test for http://crbug.com/109163
10 """ 10 """
11 11
12 import TestGyp 12 import TestGyp
13 13
14 import sys 14 import sys
15 15
16 if sys.platform == 'darwin': 16 if sys.platform == 'darwin':
17 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) 17 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
18
19 # The ninja generator ignores SYMROOT, while the xcode generator doesn't.
sdefresne 2014/09/02 15:13:05 Same here.
Tobias 2014/10/02 18:19:19 Done.
20 if test.format == 'xcode-ninja':
21 test.skip_test()
22
18 test.run_gyp('src/dir2/dir2.gyp', chdir='global-settings', depth='src') 23 test.run_gyp('src/dir2/dir2.gyp', chdir='global-settings', depth='src')
19 # run_gyp shouldn't throw. 24 # run_gyp shouldn't throw.
20 25
21 # Check that BUILT_PRODUCTS_DIR was set correctly, too. 26 # Check that BUILT_PRODUCTS_DIR was set correctly, too.
22 test.build('dir2/dir2.gyp', 'dir2_target', chdir='global-settings/src', 27 test.build('dir2/dir2.gyp', 'dir2_target', chdir='global-settings/src',
23 SYMROOT='../build') 28 SYMROOT='../build')
24 test.built_file_must_exist('file.txt', chdir='global-settings/src') 29 test.built_file_must_exist('file.txt', chdir='global-settings/src')
25 30
26 test.pass_test() 31 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698