| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 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 |
| 5 # found in the LICENSE file. |
| 6 |
| 3 """ | 7 """ |
| 4 Verifies that a project hierarchy created with the --generator-output= | 8 Verifies that a project hierarchy created with the --generator-output= |
| 5 option can be built even when it's relocated to a different path. | 9 option can be built even when it's relocated to a different path. |
| 6 """ | 10 """ |
| 7 | 11 |
| 8 import TestGyp | 12 import TestGyp |
| 9 | 13 |
| 10 test = TestGyp.TestGyp() | 14 test = TestGyp.TestGyp() |
| 11 | 15 |
| 12 test.writable(test.workpath('src'), False) | 16 test.writable(test.workpath('src'), False) |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 50 |
| 47 if test.format == 'xcode': | 51 if test.format == 'xcode': |
| 48 chdir = 'relocate/src/subdir2' | 52 chdir = 'relocate/src/subdir2' |
| 49 test.run_built_executable('prog2', chdir=chdir, stdout=expect % 'prog2.c') | 53 test.run_built_executable('prog2', chdir=chdir, stdout=expect % 'prog2.c') |
| 50 | 54 |
| 51 if test.format == 'xcode': | 55 if test.format == 'xcode': |
| 52 chdir = 'relocate/src/subdir3' | 56 chdir = 'relocate/src/subdir3' |
| 53 test.run_built_executable('prog3', chdir=chdir, stdout=expect % 'prog3.c') | 57 test.run_built_executable('prog3', chdir=chdir, stdout=expect % 'prog3.c') |
| 54 | 58 |
| 55 test.pass_test() | 59 test.pass_test() |
| OLD | NEW |