| OLD | NEW |
| 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 stripping works. | 8 Verifies that stripping works. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 o = proc.communicate()[0] | 32 o = proc.communicate()[0] |
| 33 assert not proc.returncode | 33 assert not proc.returncode |
| 34 m = r.search(o) | 34 m = r.search(o) |
| 35 n = int(m.group(1)) | 35 n = int(m.group(1)) |
| 36 if n != n_expected: | 36 if n != n_expected: |
| 37 print 'Stripping: Expected %d symbols, got %d' % (n_expected, n) | 37 print 'Stripping: Expected %d symbols, got %d' % (n_expected, n) |
| 38 test.fail_test() | 38 test.fail_test() |
| 39 | 39 |
| 40 # The actual numbers here are not interesting, they just need to be the same | 40 # The actual numbers here are not interesting, they just need to be the same |
| 41 # in both the xcode and the make build. | 41 # in both the xcode and the make build. |
| 42 CheckNsyms(OutPath('no_postprocess'), 10) | 42 CheckNsyms(OutPath('no_postprocess'), 25) |
| 43 CheckNsyms(OutPath('no_strip'), 10) | 43 CheckNsyms(OutPath('no_strip'), 25) |
| 44 CheckNsyms(OutPath('strip_all'), 0) | 44 CheckNsyms(OutPath('strip_all'), 0) |
| 45 CheckNsyms(OutPath('strip_nonglobal'), 2) | 45 CheckNsyms(OutPath('strip_nonglobal'), 4) |
| 46 CheckNsyms(OutPath('strip_debugging'), 2) | 46 CheckNsyms(OutPath('strip_debugging'), 5) |
| 47 CheckNsyms(OutPath('strip_all_custom_flags'), 0) | 47 CheckNsyms(OutPath('strip_all_custom_flags'), 0) |
| 48 CheckNsyms(test.built_file_path( | 48 CheckNsyms(test.built_file_path( |
| 49 'strip_all_bundle.framework/Versions/A/strip_all_bundle', chdir='strip'), | 49 'strip_all_bundle.framework/Versions/A/strip_all_bundle', chdir='strip'), |
| 50 0) | 50 0) |
| 51 CheckNsyms(OutPath('strip_save'), 2) | 51 CheckNsyms(OutPath('strip_save'), 5) |
| 52 | 52 |
| 53 test.pass_test() | 53 test.pass_test() |
| OLD | NEW |