OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2011 Google Inc. All rights reserved. | 3 # Copyright (c) 2011 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 simple rules when using an explicit build target of 'all'. | 8 Verifies simple rules when using an explicit build target of 'all'. |
9 """ | 9 """ |
10 | 10 |
11 import TestGyp | 11 import TestGyp |
12 | 12 |
13 test = TestGyp.TestGyp() | 13 test = TestGyp.TestGyp() |
14 | 14 |
| 15 test.run_gyp('no_action_with_rules_fails.gyp', chdir='src/noaction', status=1, |
| 16 stderr=None) |
| 17 |
15 test.run_gyp('actions.gyp', chdir='src') | 18 test.run_gyp('actions.gyp', chdir='src') |
16 | 19 |
17 test.relocate('src', 'relocate/src') | 20 test.relocate('src', 'relocate/src') |
18 | 21 |
19 test.build('actions.gyp', test.ALL, chdir='relocate/src') | 22 test.build('actions.gyp', test.ALL, chdir='relocate/src') |
20 | 23 |
21 expect = """\ | 24 expect = """\ |
22 Hello from program.c | 25 Hello from program.c |
23 Hello from function1.in | 26 Hello from function1.in |
24 Hello from function2.in | 27 Hello from function2.in |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 Got 41. | 60 Got 41. |
58 """ | 61 """ |
59 | 62 |
60 if test.format == 'xcode': | 63 if test.format == 'xcode': |
61 chdir = 'relocate/src/subdir4' | 64 chdir = 'relocate/src/subdir4' |
62 else: | 65 else: |
63 chdir = 'relocate/src' | 66 chdir = 'relocate/src' |
64 test.run_built_executable('program4', chdir=chdir, stdout=expect) | 67 test.run_built_executable('program4', chdir=chdir, stdout=expect) |
65 | 68 |
66 test.pass_test() | 69 test.pass_test() |
OLD | NEW |