OLD | NEW |
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 --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 test = TestGyp.TestGyp() | 13 # Ninja doesn't support --generator-output. |
| 14 test = TestGyp.TestGyp(formats=['!ninja']) |
14 | 15 |
15 # All the generated files should go under 'gypfiles'. The source directory | 16 # All the generated files should go under 'gypfiles'. The source directory |
16 # ('actions') should be untouched. | 17 # ('actions') should be untouched. |
17 test.writable(test.workpath('actions'), False) | 18 test.writable(test.workpath('actions'), False) |
18 test.run_gyp('actions.gyp', | 19 test.run_gyp('actions.gyp', |
19 '--generator-output=' + test.workpath('gypfiles'), | 20 '--generator-output=' + test.workpath('gypfiles'), |
20 chdir='actions') | 21 chdir='actions') |
21 | 22 |
22 test.writable(test.workpath('actions'), True) | 23 test.writable(test.workpath('actions'), True) |
23 | 24 |
(...skipping 24 matching lines...) Expand all Loading... |
48 if test.format == 'xcode': | 49 if test.format == 'xcode': |
49 chdir = 'relocate/actions/subdir1' | 50 chdir = 'relocate/actions/subdir1' |
50 else: | 51 else: |
51 chdir = 'relocate/gypfiles' | 52 chdir = 'relocate/gypfiles' |
52 test.run_built_executable('program', chdir=chdir, stdout=expect) | 53 test.run_built_executable('program', chdir=chdir, stdout=expect) |
53 | 54 |
54 test.must_match('relocate/actions/subdir2/actions-out/file.out', | 55 test.must_match('relocate/actions/subdir2/actions-out/file.out', |
55 "Hello from make-file.py\n") | 56 "Hello from make-file.py\n") |
56 | 57 |
57 test.pass_test() | 58 test.pass_test() |
OLD | NEW |