| 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 building a project hierarchy created when the --generator-output= | 8 Verifies building a project hierarchy created when the --generator-output= |
| 9 option is used to put the build configuration files in a separate | 9 option is used to put the build configuration files in a separate |
| 10 directory tree. | 10 directory tree. |
| 11 """ | 11 """ |
| 12 | 12 |
| 13 import TestGyp | 13 import TestGyp |
| 14 | 14 |
| 15 test = TestGyp.TestGyp() | 15 test = TestGyp.TestGyp(formats=['!ninja']) |
| 16 | 16 |
| 17 test.writable(test.workpath('src'), False) | 17 test.writable(test.workpath('src'), False) |
| 18 | 18 |
| 19 test.run_gyp('prog1.gyp', | 19 test.run_gyp('prog1.gyp', |
| 20 '-Dset_symroot=1', | 20 '-Dset_symroot=1', |
| 21 '--generator-output=' + test.workpath('gypfiles'), | 21 '--generator-output=' + test.workpath('gypfiles'), |
| 22 chdir='src') | 22 chdir='src') |
| 23 | 23 |
| 24 test.writable(test.workpath('src/build'), True) | 24 test.writable(test.workpath('src/build'), True) |
| 25 test.writable(test.workpath('src/subdir2/build'), True) | 25 test.writable(test.workpath('src/subdir2/build'), True) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 44 | 44 |
| 45 if test.format == 'xcode': | 45 if test.format == 'xcode': |
| 46 chdir = 'src/subdir2' | 46 chdir = 'src/subdir2' |
| 47 test.run_built_executable('prog2', chdir=chdir, stdout=expect % 'prog2.c') | 47 test.run_built_executable('prog2', chdir=chdir, stdout=expect % 'prog2.c') |
| 48 | 48 |
| 49 if test.format == 'xcode': | 49 if test.format == 'xcode': |
| 50 chdir = 'src/subdir3' | 50 chdir = 'src/subdir3' |
| 51 test.run_built_executable('prog3', chdir=chdir, stdout=expect % 'prog3.c') | 51 test.run_built_executable('prog3', chdir=chdir, stdout=expect % 'prog3.c') |
| 52 | 52 |
| 53 test.pass_test() | 53 test.pass_test() |
| OLD | NEW |