| 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 LD_DYLIB_INSTALL_NAME and DYLIB_INSTALL_NAME_BASE are handled | 8 Verifies that LD_DYLIB_INSTALL_NAME and DYLIB_INSTALL_NAME_BASE are handled |
| 9 correctly. | 9 correctly. |
| 10 """ | 10 """ |
| 11 | 11 |
| 12 from __future__ import print_function |
| 13 |
| 12 import TestGyp | 14 import TestGyp |
| 13 | 15 |
| 14 import re | 16 import re |
| 15 import subprocess | 17 import subprocess |
| 16 import sys | 18 import sys |
| 17 | 19 |
| 18 if sys.platform == 'darwin': | 20 if sys.platform == 'darwin': |
| 19 print "This test is currently disabled: https://crbug.com/483696." | 21 print("This test is currently disabled: https://crbug.com/483696.") |
| 20 sys.exit(0) | 22 sys.exit(0) |
| 21 | 23 |
| 22 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) | 24 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) |
| 23 | 25 |
| 24 CHDIR = 'installname' | 26 CHDIR = 'installname' |
| 25 test.run_gyp('test.gyp', chdir=CHDIR) | 27 test.run_gyp('test.gyp', chdir=CHDIR) |
| 26 | 28 |
| 27 test.build('test.gyp', test.ALL, chdir=CHDIR) | 29 test.build('test.gyp', test.ALL, chdir=CHDIR) |
| 28 | 30 |
| 29 def GetInstallname(p): | 31 def GetInstallname(p): |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 'install_name_with_info_plist') != | 76 'install_name_with_info_plist') != |
| 75 '/Library/Frameworks/install_name_with_info_plist.framework/' | 77 '/Library/Frameworks/install_name_with_info_plist.framework/' |
| 76 'Versions/A/install_name_with_info_plist'): | 78 'Versions/A/install_name_with_info_plist'): |
| 77 test.fail_test() | 79 test.fail_test() |
| 78 | 80 |
| 79 if ('DYLIB_INSTALL_NAME_BASE:standardizepath: command not found' in | 81 if ('DYLIB_INSTALL_NAME_BASE:standardizepath: command not found' in |
| 80 test.stdout()): | 82 test.stdout()): |
| 81 test.fail_test() | 83 test.fail_test() |
| 82 | 84 |
| 83 test.pass_test() | 85 test.pass_test() |
| OLD | NEW |