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 build of an executable with C++ define specified by a gyp define. | 8 Verifies build of an executable with C++ define specified by a gyp define. |
5 """ | 9 """ |
6 | 10 |
7 import os | 11 import os |
8 import TestGyp | 12 import TestGyp |
9 | 13 |
10 test = TestGyp.TestGyp() | 14 test = TestGyp.TestGyp() |
11 | 15 |
12 # With the value only given in environment, it should be used. | 16 # With the value only given in environment, it should be used. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 test.touch('defines.c') | 76 test.touch('defines.c') |
73 test.build('defines-env.gyp') | 77 test.build('defines-env.gyp') |
74 | 78 |
75 expect = """\ | 79 expect = """\ |
76 VALUE is 45 | 80 VALUE is 45 |
77 """ | 81 """ |
78 test.run_built_executable('defines', stdout=expect) | 82 test.run_built_executable('defines', stdout=expect) |
79 | 83 |
80 | 84 |
81 test.pass_test() | 85 test.pass_test() |
OLD | NEW |