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

Side by Side Diff: test/include_dirs/gyptest-default.py

Issue 13869005: Dropping the scons generator. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « test/include_dirs/gyptest-all.py ('k') | test/lib/TestGyp.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) 2009 Google Inc. All rights reserved. 3 # Copyright (c) 2009 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 use of include_dirs when using the default build target. 8 Verifies use of include_dirs when using the default build target.
9 """ 9 """
10 10
11 import TestGyp 11 import TestGyp
12 12
13 test = TestGyp.TestGyp() 13 test = TestGyp.TestGyp()
14 14
15 if test.format == 'scons':
16 test.skip_test('TODO: http://code.google.com/p/gyp/issues/detail?id=176\n')
17
18 test.run_gyp('includes.gyp', chdir='src') 15 test.run_gyp('includes.gyp', chdir='src')
19 16
20 test.relocate('src', 'relocate/src') 17 test.relocate('src', 'relocate/src')
21 18
22 test.build('includes.gyp', test.ALL, chdir='relocate/src') 19 test.build('includes.gyp', test.ALL, chdir='relocate/src')
23 20
24 expect = """\ 21 expect = """\
25 Hello from includes.c 22 Hello from includes.c
26 Hello from inc.h 23 Hello from inc.h
27 Hello from include1.h 24 Hello from include1.h
28 Hello from subdir/inc2/include2.h 25 Hello from subdir/inc2/include2.h
29 Hello from shadow2/shadow.h 26 Hello from shadow2/shadow.h
30 """ 27 """
31 test.run_built_executable('includes', stdout=expect, chdir='relocate/src') 28 test.run_built_executable('includes', stdout=expect, chdir='relocate/src')
32 29
33 if test.format == 'xcode': 30 if test.format == 'xcode':
34 chdir='relocate/src/subdir' 31 chdir='relocate/src/subdir'
35 else: 32 else:
36 chdir='relocate/src' 33 chdir='relocate/src'
37 34
38 expect = """\ 35 expect = """\
39 Hello from subdir/subdir_includes.c 36 Hello from subdir/subdir_includes.c
40 Hello from subdir/inc.h 37 Hello from subdir/inc.h
41 Hello from include1.h 38 Hello from include1.h
42 Hello from subdir/inc2/include2.h 39 Hello from subdir/inc2/include2.h
43 """ 40 """
44 test.run_built_executable('subdir_includes', stdout=expect, chdir=chdir) 41 test.run_built_executable('subdir_includes', stdout=expect, chdir=chdir)
45 42
46 test.pass_test() 43 test.pass_test()
OLDNEW
« no previous file with comments | « test/include_dirs/gyptest-all.py ('k') | test/lib/TestGyp.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698