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

Side by Side Diff: test/rules/gyptest-all.py

Issue 10382161: Fix bug in ninja generator when there's no default action. (Closed) Base URL: http://git.chromium.org/external/gyp.git@master
Patch Set: fix other generators Created 8 years, 6 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 | « pylib/gyp/generator/scons.py ('k') | test/rules/src/actions.gyp » ('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 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,
16 stderr=None)
17
15 test.run_gyp('actions.gyp', chdir='src') 18 test.run_gyp('actions.gyp', chdir='src')
16 19
17 test.relocate('src', 'relocate/src') 20 test.relocate('src', 'relocate/src')
18 21
19 test.build('actions.gyp', test.ALL, chdir='relocate/src') 22 test.build('actions.gyp', test.ALL, chdir='relocate/src')
20 23
21 expect = """\ 24 expect = """\
22 Hello from program.c 25 Hello from program.c
23 Hello from function1.in 26 Hello from function1.in
24 Hello from function2.in 27 Hello from function2.in
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 Got 41. 60 Got 41.
58 """ 61 """
59 62
60 if test.format == 'xcode': 63 if test.format == 'xcode':
61 chdir = 'relocate/src/subdir4' 64 chdir = 'relocate/src/subdir4'
62 else: 65 else:
63 chdir = 'relocate/src' 66 chdir = 'relocate/src'
64 test.run_built_executable('program4', chdir=chdir, stdout=expect) 67 test.run_built_executable('program4', chdir=chdir, stdout=expect)
65 68
66 test.pass_test() 69 test.pass_test()
OLDNEW
« no previous file with comments | « pylib/gyp/generator/scons.py ('k') | test/rules/src/actions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698