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

Side by Side Diff: test/rules-dirname/gyptest-dirname.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) 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 Verifies simple rules when using an explicit build target of 'all'. 8 Verifies simple rules when using an explicit build target of 'all'.
9 """ 9 """
10 10
11 import TestGyp 11 import TestGyp
12 import os 12 import os
13 import sys 13 import sys
14 14
15 test = TestGyp.TestGyp(formats=['make', 'ninja', 'android', 'xcode', 'msvs']) 15 test = TestGyp.TestGyp(formats=['make', 'ninja', 'android', 'xcode', 'msvs'])
16 16
17 test.run_gyp('actions.gyp', chdir='src') 17 test.run_gyp('actions.gyp',
18 '-G', 'xcode_ninja_target_pattern=^.*$',
19 chdir='src')
18 20
19 test.relocate('src', 'relocate/src') 21 test.relocate('src', 'relocate/src')
20 22
21 test.build('actions.gyp', chdir='relocate/src') 23 test.build('actions.gyp', chdir='relocate/src')
22 24
23 expect = """\ 25 expect = """\
24 no dir here 26 no dir here
25 hi c 27 hi c
26 hello baz 28 hello baz
27 """ 29 """
(...skipping 13 matching lines...) Expand all
41 43
42 # FIXME the xcode and make generators incorrectly convert RULE_INPUT_PATH 44 # FIXME the xcode and make generators incorrectly convert RULE_INPUT_PATH
43 # to an absolute path, making the tests below fail! 45 # to an absolute path, making the tests below fail!
44 if test.format != 'xcode' and test.format != 'make': 46 if test.format != 'xcode' and test.format != 'make':
45 test.must_match('relocate/src/subdir/foo/bar/baz.path', 47 test.must_match('relocate/src/subdir/foo/bar/baz.path',
46 os.path.join('foo', 'bar', 'baz.printvars')) 48 os.path.join('foo', 'bar', 'baz.printvars'))
47 test.must_match('relocate/src/subdir/a/b/c.path', 49 test.must_match('relocate/src/subdir/a/b/c.path',
48 os.path.join('a', 'b', 'c.printvars')) 50 os.path.join('a', 'b', 'c.printvars'))
49 51
50 test.pass_test() 52 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698