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 .hpp files are ignored when included in the source list on all | 8 Verifies that .hpp files are ignored when included in the source list on all |
5 platforms. | 9 platforms. |
6 """ | 10 """ |
7 | 11 |
8 import TestGyp | 12 import TestGyp |
9 | 13 |
10 test = TestGyp.TestGyp() | 14 test = TestGyp.TestGyp() |
11 | 15 |
12 test.run_gyp('headers.gyp', chdir='src') | 16 test.run_gyp('headers.gyp', chdir='src') |
13 | 17 |
14 test.relocate('src', 'relocate/src') | 18 test.relocate('src', 'relocate/src') |
15 | 19 |
16 test.build('headers.gyp', test.ALL, chdir='relocate/src') | 20 test.build('headers.gyp', test.ALL, chdir='relocate/src') |
17 | 21 |
18 expect = """\ | 22 expect = """\ |
19 Hello from program.c | 23 Hello from program.c |
20 Hello from lib1.c | 24 Hello from lib1.c |
21 """ | 25 """ |
22 test.run_built_executable('program', chdir='relocate/src', stdout=expect) | 26 test.run_built_executable('program', chdir='relocate/src', stdout=expect) |
23 | 27 |
24 | 28 |
25 test.pass_test() | 29 test.pass_test() |
OLD | NEW |