| OLD | NEW | 
|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python | 
| 2 | 2 | 
| 3 # Copyright (c) 2009 Google Inc. All rights reserved. | 3 # Copyright (c) 2009 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 file copies using the build tool default. | 8 Verifies file copies using the build tool default. | 
| 9 """ | 9 """ | 
| 10 | 10 | 
| 11 import TestGyp | 11 import TestGyp | 
| 12 | 12 | 
| 13 test = TestGyp.TestGyp() | 13 # This test doesn't actually test what it thinks it's testing.  It copies a | 
|  | 14 # library around and then tries to write a link line to use the copy, but by | 
|  | 15 # virtue of depending on the original library it gets the original library | 
|  | 16 # on the final link line anyway. | 
|  | 17 test = TestGyp.TestGyp(formats=['!ninja']) | 
| 14 | 18 | 
| 15 test.run_gyp('copies-link.gyp', chdir='src') | 19 test.run_gyp('copies-link.gyp', chdir='src') | 
| 16 | 20 | 
| 17 test.relocate('src', 'relocate/src') | 21 test.relocate('src', 'relocate/src') | 
| 18 | 22 | 
| 19 test.build('copies-link.gyp', chdir='relocate/src') | 23 test.build('copies-link.gyp', chdir='relocate/src') | 
| 20 | 24 | 
| 21 test.pass_test() | 25 test.pass_test() | 
| OLD | NEW | 
|---|