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 building a target from a .gyp file a few subdirectories | 8 Verifies building a target from a .gyp file a few subdirectories |
5 deep when the --generator-output= option is used to put the build | 9 deep when the --generator-output= option is used to put the build |
6 configuration files in a separate directory tree. | 10 configuration files in a separate directory tree. |
7 """ | 11 """ |
8 | 12 |
9 import TestGyp | 13 import TestGyp |
10 | 14 |
11 test = TestGyp.TestGyp() | 15 test = TestGyp.TestGyp() |
12 | 16 |
(...skipping 10 matching lines...) Expand all Loading... |
23 | 27 |
24 chdir = 'gypfiles' | 28 chdir = 'gypfiles' |
25 | 29 |
26 if test.format == 'xcode': | 30 if test.format == 'xcode': |
27 chdir = 'src/subdir2/deeper' | 31 chdir = 'src/subdir2/deeper' |
28 test.run_built_executable('deeper', | 32 test.run_built_executable('deeper', |
29 chdir=chdir, | 33 chdir=chdir, |
30 stdout="Hello from deeper.c\n") | 34 stdout="Hello from deeper.c\n") |
31 | 35 |
32 test.pass_test() | 36 test.pass_test() |
OLD | NEW |