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

Side by Side Diff: test/rules/gyptest-all.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 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 12
13 test = TestGyp.TestGyp() 13 test = TestGyp.TestGyp()
14 14
15 test.run_gyp('no_action_with_rules_fails.gyp', chdir='src/noaction', status=1, 15 test.run_gyp('no_action_with_rules_fails.gyp', chdir='src/noaction', status=1,
16 stderr=None) 16 stderr=None)
17 17
18 test.run_gyp('actions.gyp', chdir='src') 18 test.run_gyp('actions.gyp',
19 '-G', 'xcode_ninja_target_pattern=^pull_in_all_actions$',
20 chdir='src')
19 21
20 test.relocate('src', 'relocate/src') 22 test.relocate('src', 'relocate/src')
21 23
22 test.build('actions.gyp', test.ALL, chdir='relocate/src') 24 test.build('actions.gyp', test.ALL, chdir='relocate/src')
23 25
24 expect = """\ 26 expect = """\
25 Hello from program.c 27 Hello from program.c
26 Hello from function1.in 28 Hello from function1.in
27 Hello from function2.in 29 Hello from function2.in
28 """ 30 """
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 Got 41. 66 Got 41.
65 """ 67 """
66 68
67 if test.format == 'xcode': 69 if test.format == 'xcode':
68 chdir = 'relocate/src/subdir4' 70 chdir = 'relocate/src/subdir4'
69 else: 71 else:
70 chdir = 'relocate/src' 72 chdir = 'relocate/src'
71 test.run_built_executable('program4', chdir=chdir, stdout=expect) 73 test.run_built_executable('program4', chdir=chdir, stdout=expect)
72 74
73 test.pass_test() 75 test.pass_test()
OLDNEW
« no previous file with comments | « test/rules-use-built-dependencies/gyptest-use-built-dependencies.py ('k') | test/rules/gyptest-default.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698