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 Test actions that output to PRODUCT_DIR. | 8 Test actions that output to PRODUCT_DIR. |
9 """ | 9 """ |
10 | 10 |
11 import TestGyp | 11 import TestGyp |
12 | 12 |
13 # TODO fix this for xcode: http://code.google.com/p/gyp/issues/detail?id=88 | 13 # TODO fix this for xcode: http://code.google.com/p/gyp/issues/detail?id=88 |
14 test = TestGyp.TestGyp(formats=['!xcode']) | 14 test = TestGyp.TestGyp(formats=['!xcode']) |
15 | 15 |
16 test.run_gyp('none.gyp', chdir='src') | 16 test.run_gyp('none.gyp', |
| 17 '-G', 'xcode_ninja_target_pattern=^file$', |
| 18 chdir='src') |
17 | 19 |
18 test.build('none.gyp', test.ALL, chdir='src') | 20 test.build('none.gyp', test.ALL, chdir='src') |
19 | 21 |
20 file_content = 'Hello from make-file.py\n' | 22 file_content = 'Hello from make-file.py\n' |
21 subdir_file_content = 'Hello from make-subdir-file.py\n' | 23 subdir_file_content = 'Hello from make-subdir-file.py\n' |
22 | 24 |
23 test.built_file_must_match('file.out', file_content, chdir='src') | 25 test.built_file_must_match('file.out', file_content, chdir='src') |
24 test.built_file_must_match('subdir_file.out', subdir_file_content, chdir='src') | 26 test.built_file_must_match('subdir_file.out', subdir_file_content, chdir='src') |
25 | 27 |
26 test.pass_test() | 28 test.pass_test() |
OLD | NEW |