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 --generator-output= behavior when using actions. | 8 Verifies --generator-output= behavior when using actions. |
5 """ | 9 """ |
6 | 10 |
7 import TestGyp | 11 import TestGyp |
8 | 12 |
9 test = TestGyp.TestGyp() | 13 test = TestGyp.TestGyp() |
10 | 14 |
11 # All the generated files should go under 'gypfiles'. The source directory | 15 # All the generated files should go under 'gypfiles'. The source directory |
12 # ('actions') should be untouched. | 16 # ('actions') should be untouched. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 if test.format == 'xcode': | 48 if test.format == 'xcode': |
45 chdir = 'relocate/actions/subdir1' | 49 chdir = 'relocate/actions/subdir1' |
46 else: | 50 else: |
47 chdir = 'relocate/gypfiles' | 51 chdir = 'relocate/gypfiles' |
48 test.run_built_executable('program', chdir=chdir, stdout=expect) | 52 test.run_built_executable('program', chdir=chdir, stdout=expect) |
49 | 53 |
50 test.must_match('relocate/actions/subdir2/actions-out/file.out', | 54 test.must_match('relocate/actions/subdir2/actions-out/file.out', |
51 "Hello from make-file.py\n") | 55 "Hello from make-file.py\n") |
52 | 56 |
53 test.pass_test() | 57 test.pass_test() |
OLD | NEW |