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

Side by Side Diff: test/rules-rebuild/gyptest-default.py

Issue 431020: Enable the new test\rules-rebuild tests on XCode. TVL++... (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 11 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « test/rules-rebuild/gyptest-all.py ('k') | no next file » | 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 """ 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
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()
OLDNEW
« no previous file with comments | « test/rules-rebuild/gyptest-all.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698