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

Side by Side Diff: test/generator-output/gyptest-actions.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 | « pylib/gyp/xcode_ninja.py ('k') | test/generator-output/gyptest-copies.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 --generator-output= behavior when using actions. 8 Verifies --generator-output= behavior when using actions.
9 """ 9 """
10 10
11 import TestGyp 11 import TestGyp
12 12
13 # Android doesn't support --generator-output. 13 # Android doesn't support --generator-output.
14 test = TestGyp.TestGyp(formats=['!android']) 14 test = TestGyp.TestGyp(formats=['!android'])
15 15
16 # Bug: xcode-ninja doesn't respect --generator-output
17 # cf. https://code.google.com/p/gyp/issues/detail?id=442
18 if test.format == 'xcode-ninja':
19 test.skip_test()
20
21 # All the generated files should go under 'gypfiles'. The source directory 16 # All the generated files should go under 'gypfiles'. The source directory
22 # ('actions') should be untouched. 17 # ('actions') should be untouched.
23 test.writable(test.workpath('actions'), False) 18 test.writable(test.workpath('actions'), False)
24 test.run_gyp('actions.gyp', 19 test.run_gyp('actions.gyp',
25 '--generator-output=' + test.workpath('gypfiles'), 20 '--generator-output=' + test.workpath('gypfiles'),
26 chdir='actions') 21 chdir='actions')
27 22
28 test.writable(test.workpath('actions'), True) 23 test.writable(test.workpath('actions'), True)
29 24
30 test.relocate('actions', 'relocate/actions') 25 test.relocate('actions', 'relocate/actions')
(...skipping 23 matching lines...) Expand all
54 if test.format == 'xcode': 49 if test.format == 'xcode':
55 chdir = 'relocate/actions/subdir1' 50 chdir = 'relocate/actions/subdir1'
56 else: 51 else:
57 chdir = 'relocate/gypfiles' 52 chdir = 'relocate/gypfiles'
58 test.run_built_executable('program', chdir=chdir, stdout=expect) 53 test.run_built_executable('program', chdir=chdir, stdout=expect)
59 54
60 test.must_match('relocate/actions/subdir2/actions-out/file.out', 55 test.must_match('relocate/actions/subdir2/actions-out/file.out',
61 "Hello from make-file.py\n") 56 "Hello from make-file.py\n")
62 57
63 test.pass_test() 58 test.pass_test()
OLDNEW
« no previous file with comments | « pylib/gyp/xcode_ninja.py ('k') | test/generator-output/gyptest-copies.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698