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

Side by Side Diff: test/subdirectory/gyptest-subdir-all.py

Issue 10399131: Fixing pylint. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 7 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
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) 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 building a subsidiary dependent target from a .gyp file in a 8 Verifies building a subsidiary dependent target from a .gyp file in a
9 subdirectory, without specifying an explicit output build directory, 9 subdirectory, without specifying an explicit output build directory,
10 and using the subdirectory's solution or project file as the entry point. 10 and using the subdirectory's solution or project file as the entry point.
11 """ 11 """
12 12
13 import TestGyp 13 import TestGyp
14 import errno
15 14
16 # Ninja doesn't support running from subdirectories. 15 # Ninja doesn't support running from subdirectories.
17 test = TestGyp.TestGyp(formats=['!ninja']) 16 test = TestGyp.TestGyp(formats=['!ninja'])
18 17
19 test.run_gyp('prog1.gyp', chdir='src') 18 test.run_gyp('prog1.gyp', chdir='src')
20 19
21 test.relocate('src', 'relocate/src') 20 test.relocate('src', 'relocate/src')
22 21
23 chdir = 'relocate/src/subdir' 22 chdir = 'relocate/src/subdir'
24 target = test.ALL 23 target = test.ALL
25 24
26 test.build('prog2.gyp', target, chdir=chdir) 25 test.build('prog2.gyp', target, chdir=chdir)
27 26
28 test.built_file_must_not_exist('prog1', type=test.EXECUTABLE, chdir=chdir) 27 test.built_file_must_not_exist('prog1', type=test.EXECUTABLE, chdir=chdir)
29 28
30 test.run_built_executable('prog2', 29 test.run_built_executable('prog2',
31 chdir=chdir, 30 chdir=chdir,
32 stdout="Hello from prog2.c\n") 31 stdout="Hello from prog2.c\n")
33 32
34 test.pass_test() 33 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698