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

Side by Side Diff: test/mac/gyptest-rebuild.py

Issue 10399131: Fixing pylint. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
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 that app bundles are rebuilt correctly. 8 Verifies that app bundles are rebuilt correctly.
9 """ 9 """
10 10
11 import TestGyp 11 import TestGyp
12 12
13 import os
14 import sys 13 import sys
15 14
16 if sys.platform == 'darwin': 15 if sys.platform == 'darwin':
17 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) 16 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
18 17
19 CHDIR = 'rebuild' 18 CHDIR = 'rebuild'
20 test.run_gyp('test.gyp', chdir=CHDIR) 19 test.run_gyp('test.gyp', chdir=CHDIR)
21 20
22 test.build('test.gyp', 'test_app', chdir=CHDIR) 21 test.build('test.gyp', 'test_app', chdir=CHDIR)
23 22
24 # Touch a source file, rebuild, and check that the app target is up-to-date. 23 # Touch a source file, rebuild, and check that the app target is up-to-date.
25 test.touch('rebuild/main.c') 24 test.touch('rebuild/main.c')
26 test.build('test.gyp', 'test_app', chdir=CHDIR) 25 test.build('test.gyp', 'test_app', chdir=CHDIR)
27 26
28 test.up_to_date('test.gyp', 'test_app', chdir=CHDIR) 27 test.up_to_date('test.gyp', 'test_app', chdir=CHDIR)
29 28
30 # Xcode runs postbuilds on every build, so targets with postbuilds are 29 # Xcode runs postbuilds on every build, so targets with postbuilds are
31 # never marked as up_to_date. 30 # never marked as up_to_date.
32 if test.format != 'xcode': 31 if test.format != 'xcode':
33 # Same for a framework bundle. 32 # Same for a framework bundle.
34 test.build('test.gyp', 'test_framework_postbuilds', chdir=CHDIR) 33 test.build('test.gyp', 'test_framework_postbuilds', chdir=CHDIR)
35 test.up_to_date('test.gyp', 'test_framework_postbuilds', chdir=CHDIR) 34 test.up_to_date('test.gyp', 'test_framework_postbuilds', chdir=CHDIR)
36 35
37 # Test that an app bundle with a postbuild that touches the app binary needs 36 # Test that an app bundle with a postbuild that touches the app binary needs
38 # to be built only once. 37 # to be built only once.
39 test.build('test.gyp', 'test_app_postbuilds', chdir=CHDIR) 38 test.build('test.gyp', 'test_app_postbuilds', chdir=CHDIR)
40 test.up_to_date('test.gyp', 'test_app_postbuilds', chdir=CHDIR) 39 test.up_to_date('test.gyp', 'test_app_postbuilds', chdir=CHDIR)
41 40
42 test.pass_test() 41 test.pass_test()
OLDNEW
« no previous file with comments | « PRESUBMIT.py ('k') | test/mac/gyptest-strip.py » ('j') | tools/pretty_gyp.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698