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

Side by Side Diff: test/mac/gyptest-strip.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) 2011 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 stripping works. 8 Verifies that stripping works.
9 """ 9 """
10 10
11 import TestGyp 11 import TestGyp
12 12
13 import os
14 import re 13 import re
15 import subprocess 14 import subprocess
16 import sys 15 import sys
17 import time 16 import time
18 17
19 if sys.platform == 'darwin': 18 if sys.platform == 'darwin':
20 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) 19 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
21 20
22 test.run_gyp('test.gyp', chdir='strip') 21 test.run_gyp('test.gyp', chdir='strip')
23 22
(...skipping 21 matching lines...) Expand all
45 CheckNsyms(OutPath('strip_all'), 0) 44 CheckNsyms(OutPath('strip_all'), 0)
46 CheckNsyms(OutPath('strip_nonglobal'), 2) 45 CheckNsyms(OutPath('strip_nonglobal'), 2)
47 CheckNsyms(OutPath('strip_debugging'), 3) 46 CheckNsyms(OutPath('strip_debugging'), 3)
48 CheckNsyms(OutPath('strip_all_custom_flags'), 0) 47 CheckNsyms(OutPath('strip_all_custom_flags'), 0)
49 CheckNsyms(test.built_file_path( 48 CheckNsyms(test.built_file_path(
50 'strip_all_bundle.framework/Versions/A/strip_all_bundle', chdir='strip'), 49 'strip_all_bundle.framework/Versions/A/strip_all_bundle', chdir='strip'),
51 0) 50 0)
52 CheckNsyms(OutPath('strip_save'), 3) 51 CheckNsyms(OutPath('strip_save'), 3)
53 52
54 test.pass_test() 53 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698