| 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 Make sure paths are normalized with VS macros properly expanded on Windows. | 8 Make sure paths are normalized with VS macros properly expanded on Windows. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 if '$!product_dir' in subninja: | 24 if '$!product_dir' in subninja: |
| 25 test.fail_test() | 25 test.fail_test() |
| 26 if 'out\\Default' in subninja: | 26 if 'out\\Default' in subninja: |
| 27 test.fail_test() | 27 test.fail_test() |
| 28 | 28 |
| 29 second = open(test.built_file_path('obj/second.ninja')).read() | 29 second = open(test.built_file_path('obj/second.ninja')).read() |
| 30 if ('..\\..\\things\\AnotherName.exe' in second or | 30 if ('..\\..\\things\\AnotherName.exe' in second or |
| 31 'AnotherName.exe' not in second): | 31 'AnotherName.exe' not in second): |
| 32 test.fail_test() | 32 test.fail_test() |
| 33 | 33 |
| 34 copytarget = open(test.built_file_path('obj/copy_target.ninja')).read() |
| 35 print copytarget |
| 36 if '$(VSInstallDir)' in copytarget: |
| 37 test.fail_test() |
| 38 |
| 34 action = open(test.built_file_path('obj/action.ninja')).read() | 39 action = open(test.built_file_path('obj/action.ninja')).read() |
| 35 if '..\\..\\out\\Default' in action: | 40 if '..\\..\\out\\Default' in action: |
| 36 test.fail_test() | 41 test.fail_test() |
| 37 if '..\\..\\SomethingElse' in action or 'SomethingElse' not in action: | 42 if '..\\..\\SomethingElse' in action or 'SomethingElse' not in action: |
| 38 test.fail_test() | 43 test.fail_test() |
| 39 if '..\\..\\SomeOtherInput' in action or 'SomeOtherInput' not in action: | 44 if '..\\..\\SomeOtherInput' in action or 'SomeOtherInput' not in action: |
| 40 test.fail_test() | 45 test.fail_test() |
| 41 | 46 |
| 42 test.pass_test() | 47 test.pass_test() |
| OLD | NEW |