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 target and a subsidiary dependent target from a | 8 Verifies building a target and a subsidiary dependent target from a |
9 .gyp file in a subdirectory, without specifying an explicit output build | 9 .gyp file in a subdirectory, without specifying an explicit output build |
10 directory, and using the generated solution or project file at the top | 10 directory, and using the generated solution or project file at the top |
(...skipping 18 matching lines...) Expand all Loading... |
29 test.build('prog1.gyp', chdir='relocate/src') | 29 test.build('prog1.gyp', chdir='relocate/src') |
30 | 30 |
31 test.run_built_executable('prog1', | 31 test.run_built_executable('prog1', |
32 stdout="Hello from prog1.c\n", | 32 stdout="Hello from prog1.c\n", |
33 chdir='relocate/src') | 33 chdir='relocate/src') |
34 | 34 |
35 if test.format == 'xcode': | 35 if test.format == 'xcode': |
36 chdir = 'relocate/src/subdir' | 36 chdir = 'relocate/src/subdir' |
37 else: | 37 else: |
38 chdir = 'relocate/src' | 38 chdir = 'relocate/src' |
39 test.run_built_executable('prog2', | 39 |
40 chdir=chdir, | 40 if test.format == 'android': |
41 stdout="Hello from prog2.c\n") | 41 test.run_built_executable('prog2', chdir=chdir, stdout="Hello from prog2.c\n", |
| 42 subdir='subdir') |
| 43 else: |
| 44 test.run_built_executable('prog2', chdir=chdir, stdout="Hello from prog2.c\n") |
42 | 45 |
43 test.pass_test() | 46 test.pass_test() |
OLD | NEW |