OLD | NEW |
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 two actions can be attached to the same input files. | 8 Verifies two actions can be attached to the same input files. |
9 """ | 9 """ |
10 | 10 |
11 import sys | 11 import sys |
12 | 12 |
13 import TestGyp | 13 import TestGyp |
14 | 14 |
15 test = TestGyp.TestGyp() | 15 test = TestGyp.TestGyp() |
16 | 16 |
17 test.run_gyp('actions.gyp', chdir='src') | 17 test.run_gyp('actions.gyp', |
| 18 '-G', 'xcode_ninja_target_pattern=^multiple.*target$', |
| 19 chdir='src') |
18 | 20 |
19 test.relocate('src', 'relocate/src') | 21 test.relocate('src', 'relocate/src') |
20 | 22 |
21 # Test of fine-grained dependencies for generators that can build individual | 23 # Test of fine-grained dependencies for generators that can build individual |
22 # files on demand. | 24 # files on demand. |
23 # In particular: | 25 # In particular: |
24 # - TargetA depends on TargetB. | 26 # - TargetA depends on TargetB. |
25 # - TargetA and TargetB are 'none' type with actions attached. | 27 # - TargetA and TargetB are 'none' type with actions attached. |
26 # - TargetA has multiple actions. | 28 # - TargetA has multiple actions. |
27 # - An output from one of the actions in TargetA (not the first listed), | 29 # - An output from one of the actions in TargetA (not the first listed), |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 'bar\n' | 65 'bar\n' |
64 'car\n' | 66 'car\n' |
65 'dar\n' | 67 'dar\n' |
66 'ear\n' | 68 'ear\n' |
67 '}\n' | 69 '}\n' |
68 ), | 70 ), |
69 ) | 71 ) |
70 | 72 |
71 | 73 |
72 test.pass_test() | 74 test.pass_test() |
OLD | NEW |