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 sys | 12 import sys |
9 import TestGyp | 13 import TestGyp |
10 | 14 |
11 # TODO(bradnelson): get this working for windows. | 15 # TODO(bradnelson): get this working for windows. |
12 test = TestGyp.TestGyp(formats=['make', 'scons', 'xcode']) | 16 test = TestGyp.TestGyp(formats=['make', 'scons', 'xcode']) |
13 | 17 |
14 test.run_gyp('assembly.gyp', chdir='src') | 18 test.run_gyp('assembly.gyp', chdir='src') |
15 | 19 |
16 test.relocate('src', 'relocate/src') | 20 test.relocate('src', 'relocate/src') |
17 | 21 |
18 test.build('assembly.gyp', test.ALL, chdir='relocate/src') | 22 test.build('assembly.gyp', test.ALL, chdir='relocate/src') |
19 | 23 |
20 expect = """\ | 24 expect = """\ |
21 Hello from program.c | 25 Hello from program.c |
22 Got 42. | 26 Got 42. |
23 """ | 27 """ |
24 test.run_built_executable('program', chdir='relocate/src', stdout=expect) | 28 test.run_built_executable('program', chdir='relocate/src', stdout=expect) |
25 | 29 |
26 | 30 |
27 test.pass_test() | 31 test.pass_test() |
OLD | NEW |