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

Side by Side Diff: test/generator-output/gyptest-copies.py

Issue 7696003: ninja: land generator for ninja files (Closed) Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: fixes Created 9 years, 4 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) 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 file copies using an explicit build target of 'all'. 8 Verifies file copies with --generator-output using an explicit build
9 target of 'all'.
9 """ 10 """
10 11
11 import TestGyp 12 import TestGyp
12 13
13 test = TestGyp.TestGyp() 14 # Ninja doesn't support --generator-output.
15 test = TestGyp.TestGyp(formats=['!ninja'])
14 16
15 test.writable(test.workpath('copies'), False) 17 test.writable(test.workpath('copies'), False)
16 18
17 test.run_gyp('copies.gyp', 19 test.run_gyp('copies.gyp',
18 '--generator-output=' + test.workpath('gypfiles'), 20 '--generator-output=' + test.workpath('gypfiles'),
19 chdir='copies') 21 chdir='copies')
20 22
21 test.writable(test.workpath('copies'), True) 23 test.writable(test.workpath('copies'), True)
22 24
23 test.relocate('copies', 'relocate/copies') 25 test.relocate('copies', 'relocate/copies')
(...skipping 24 matching lines...) Expand all
48 50
49 if test.format == 'xcode': 51 if test.format == 'xcode':
50 chdir = 'relocate/copies/subdir/build' 52 chdir = 'relocate/copies/subdir/build'
51 elif test.format == 'make': 53 elif test.format == 'make':
52 chdir = 'relocate/gypfiles/out' 54 chdir = 'relocate/gypfiles/out'
53 else: 55 else:
54 chdir = 'relocate/gypfiles' 56 chdir = 'relocate/gypfiles'
55 test.must_match([chdir, 'Default', 'copies-out', 'file4'], "file4 contents\n") 57 test.must_match([chdir, 'Default', 'copies-out', 'file4'], "file4 contents\n")
56 58
57 test.pass_test() 59 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698