OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 """ | 3 """ |
4 Verifies that a rule that generates multiple outputs rebuilds | 4 Verifies that a rule that generates multiple outputs rebuilds |
5 correctly when the inputs change. | 5 correctly when the inputs change. |
6 """ | 6 """ |
7 | 7 |
8 import TestGyp | 8 import TestGyp |
9 | 9 |
10 test = TestGyp.TestGyp() | 10 test = TestGyp.TestGyp() |
11 | 11 |
12 if test.format == 'msvs': | 12 if test.format == 'msvs': |
13 msg = 'TODO: issue 120: disabled on MSVS due to test execution problems.\n' | 13 msg = 'TODO: issue 120: disabled on MSVS due to test execution problems.\n' |
14 test.skip_test(msg) | 14 test.skip_test(msg) |
15 | 15 |
16 if test.format == 'xcode': | |
17 msg = 'TODO: issue 94: disabled on Xcode due to rule timing issues.\n' | |
18 test.skip_test(msg) | |
19 | |
20 test.run_gyp('same_target.gyp', chdir='src') | 16 test.run_gyp('same_target.gyp', chdir='src') |
21 | 17 |
22 test.relocate('src', 'relocate/src') | 18 test.relocate('src', 'relocate/src') |
23 | 19 |
24 | 20 |
25 test.build('same_target.gyp', chdir='relocate/src') | 21 test.build('same_target.gyp', chdir='relocate/src') |
26 | 22 |
27 expect = """\ | 23 expect = """\ |
28 Hello from main.c | 24 Hello from main.c |
29 Hello from prog1.in! | 25 Hello from prog1.in! |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 Hello from prog1.in AGAIN! | 61 Hello from prog1.in AGAIN! |
66 Hello from prog2.in AGAIN! | 62 Hello from prog2.in AGAIN! |
67 """ | 63 """ |
68 | 64 |
69 test.run_built_executable('program', chdir='relocate/src', stdout=expect) | 65 test.run_built_executable('program', chdir='relocate/src', stdout=expect) |
70 | 66 |
71 test.up_to_date('same_target.gyp', 'program', chdir='relocate/src') | 67 test.up_to_date('same_target.gyp', 'program', chdir='relocate/src') |
72 | 68 |
73 | 69 |
74 test.pass_test() | 70 test.pass_test() |
OLD | NEW |