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

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

Issue 1131213003: Remove the Android generator. (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Created 5 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
« no previous file with comments | « test/generator-output/gyptest-copies.py ('k') | test/generator-output/gyptest-rules.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 that a project hierarchy created with the --generator-output= 8 Verifies that a project hierarchy created with the --generator-output=
9 option can be built even when it's relocated to a different path. 9 option can be built even when it's relocated to a different path.
10 """ 10 """
11 11
12 import TestGyp 12 import TestGyp
13 13
14 # Android doesn't support --generator-output. 14 test = TestGyp.TestGyp()
15 test = TestGyp.TestGyp(formats=['!android'])
16 15
17 test.writable(test.workpath('src'), False) 16 test.writable(test.workpath('src'), False)
18 17
19 test.run_gyp('prog1.gyp', 18 test.run_gyp('prog1.gyp',
20 '-Dset_symroot=1', 19 '-Dset_symroot=1',
21 '--generator-output=' + test.workpath('gypfiles'), 20 '--generator-output=' + test.workpath('gypfiles'),
22 chdir='src') 21 chdir='src')
23 22
24 test.writable(test.workpath('src'), True) 23 test.writable(test.workpath('src'), True)
25 24
(...skipping 25 matching lines...) Expand all
51 50
52 if test.format == 'xcode': 51 if test.format == 'xcode':
53 chdir = 'relocate/src/subdir2' 52 chdir = 'relocate/src/subdir2'
54 test.run_built_executable('prog2', chdir=chdir, stdout=expect % 'prog2.c') 53 test.run_built_executable('prog2', chdir=chdir, stdout=expect % 'prog2.c')
55 54
56 if test.format == 'xcode': 55 if test.format == 'xcode':
57 chdir = 'relocate/src/subdir3' 56 chdir = 'relocate/src/subdir3'
58 test.run_built_executable('prog3', chdir=chdir, stdout=expect % 'prog3.c') 57 test.run_built_executable('prog3', chdir=chdir, stdout=expect % 'prog3.c')
59 58
60 test.pass_test() 59 test.pass_test()
OLDNEW
« no previous file with comments | « test/generator-output/gyptest-copies.py ('k') | test/generator-output/gyptest-rules.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698