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

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

Issue 421053005: Fix: xcode-ninja should generate Xcode workspace into generator_output (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@Fix-Xcode-ninja-workspace-2
Patch Set: Rebase onto 421453003 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
« no previous file with comments | « test/generator-output/gyptest-actions.py ('k') | test/generator-output/gyptest-mac-bundle.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) 2012 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 file copies with --generator-output using an explicit build 8 Verifies file copies with --generator-output using an explicit build
9 target of 'all'. 9 target of 'all'.
10 """ 10 """
11 11
12 import TestGyp 12 import TestGyp
13 13
14 # Android doesn't support --generator-output. 14 # Android doesn't support --generator-output.
15 test = TestGyp.TestGyp(formats=['!android']) 15 test = TestGyp.TestGyp(formats=['!android'])
16 16
17 # Bug: xcode-ninja doesn't respect --generator-output
18 # cf. https://code.google.com/p/gyp/issues/detail?id=442
19 if test.format == 'xcode-ninja':
20 test.skip_test()
21
22 test.writable(test.workpath('copies'), False) 17 test.writable(test.workpath('copies'), False)
23 18
24 test.run_gyp('copies.gyp', 19 test.run_gyp('copies.gyp',
25 '--generator-output=' + test.workpath('gypfiles'), 20 '--generator-output=' + test.workpath('gypfiles'),
26 '-G', 'xcode_ninja_target_pattern=^(?!copies_null)', 21 '-G', 'xcode_ninja_target_pattern=^(?!copies_null)',
27 chdir='copies') 22 chdir='copies')
28 23
29 test.writable(test.workpath('copies'), True) 24 test.writable(test.workpath('copies'), True)
30 25
31 test.relocate('copies', 'relocate/copies') 26 test.relocate('copies', 'relocate/copies')
(...skipping 24 matching lines...) Expand all
56 51
57 if test.format == 'xcode': 52 if test.format == 'xcode':
58 chdir = 'relocate/copies/subdir/build' 53 chdir = 'relocate/copies/subdir/build'
59 elif test.format in ['make', 'ninja', 'xcode-ninja', 'cmake']: 54 elif test.format in ['make', 'ninja', 'xcode-ninja', 'cmake']:
60 chdir = 'relocate/gypfiles/out' 55 chdir = 'relocate/gypfiles/out'
61 else: 56 else:
62 chdir = 'relocate/gypfiles' 57 chdir = 'relocate/gypfiles'
63 test.must_match([chdir, 'Default', 'copies-out', 'file4'], "file4 contents\n") 58 test.must_match([chdir, 'Default', 'copies-out', 'file4'], "file4 contents\n")
64 59
65 test.pass_test() 60 test.pass_test()
OLDNEW
« no previous file with comments | « test/generator-output/gyptest-actions.py ('k') | test/generator-output/gyptest-mac-bundle.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698