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

Side by Side Diff: test/actions/gyptest-generated-header.py

Issue 1131213003: Remove the Android generator. (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Created 5 years, 7 months 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
« no previous file with comments | « test/actions/gyptest-default.py ('k') | test/additional-targets/gyptest-additional.py » ('j') | 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 # Copyright (c) 2013 Google Inc. All rights reserved. 3 # Copyright (c) 2013 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 that dependencies on generated headers work, even if the header has 8 Verifies that dependencies on generated headers work, even if the header has
9 a mixed-case file name. 9 a mixed-case file name.
10 """ 10 """
11 11
12 import TestGyp 12 import TestGyp
13 13
14 test = TestGyp.TestGyp() 14 test = TestGyp.TestGyp()
15 15
16 if test.format == 'android':
17 # This test currently fails on android. Investigate why, fix the issues
18 # responsible, and reenable this test on android. See bug:
19 # https://code.google.com/p/gyp/issues/detail?id=436
20 test.skip_test(message='Test fails on android. Fix and reenable.\n')
21
22 CHDIR = 'generated-header' 16 CHDIR = 'generated-header'
23 17
24 test.run_gyp('test.gyp', chdir=CHDIR) 18 test.run_gyp('test.gyp', chdir=CHDIR)
25 test.build('test.gyp', 'program', chdir=CHDIR) 19 test.build('test.gyp', 'program', chdir=CHDIR)
26 test.up_to_date('test.gyp', 'program', chdir=CHDIR) 20 test.up_to_date('test.gyp', 'program', chdir=CHDIR)
27 21
28 expect = 'foobar output\n' 22 expect = 'foobar output\n'
29 test.run_built_executable('program', chdir=CHDIR, stdout=expect) 23 test.run_built_executable('program', chdir=CHDIR, stdout=expect)
30 24
31 # Change what's written to the generated header, regyp and rebuild, and check 25 # Change what's written to the generated header, regyp and rebuild, and check
32 # that the change makes it to the executable and that the build is clean. 26 # that the change makes it to the executable and that the build is clean.
33 test.sleep() 27 test.sleep()
34 test.write('generated-header/test.gyp', 28 test.write('generated-header/test.gyp',
35 test.read('generated-header/test.gyp').replace('foobar', 'barbaz')) 29 test.read('generated-header/test.gyp').replace('foobar', 'barbaz'))
36 30
37 test.run_gyp('test.gyp', chdir=CHDIR) 31 test.run_gyp('test.gyp', chdir=CHDIR)
38 test.build('test.gyp', 'program', chdir=CHDIR) 32 test.build('test.gyp', 'program', chdir=CHDIR)
39 test.up_to_date('test.gyp', 'program', chdir=CHDIR) 33 test.up_to_date('test.gyp', 'program', chdir=CHDIR)
40 34
41 expect = 'barbaz output\n' 35 expect = 'barbaz output\n'
42 test.run_built_executable('program', chdir=CHDIR, stdout=expect) 36 test.run_built_executable('program', chdir=CHDIR, stdout=expect)
43 37
44 test.pass_test() 38 test.pass_test()
OLDNEW
« no previous file with comments | « test/actions/gyptest-default.py ('k') | test/additional-targets/gyptest-additional.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698