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, and | 8 Verifies build of an executable with C++ define specified by a gyp define, and |
5 the use of the environment during regeneration when the gyp file changes. | 9 the use of the environment during regeneration when the gyp file changes. |
6 """ | 10 """ |
7 | 11 |
8 import os | 12 import os |
9 import TestGyp | 13 import TestGyp |
10 | 14 |
11 # Regenerating build files when a gyp file changes is currently only supported | 15 # Regenerating build files when a gyp file changes is currently only supported |
12 # by the make generator. | 16 # by the make generator. |
(...skipping 23 matching lines...) Expand all Loading... |
36 test.write('defines.gyp', test.read('defines-env.gyp')) | 40 test.write('defines.gyp', test.read('defines-env.gyp')) |
37 | 41 |
38 test.build('defines.gyp', test.ALL) | 42 test.build('defines.gyp', test.ALL) |
39 | 43 |
40 expect = """\ | 44 expect = """\ |
41 VALUE is 50 | 45 VALUE is 50 |
42 """ | 46 """ |
43 test.run_built_executable('defines', stdout=expect) | 47 test.run_built_executable('defines', stdout=expect) |
44 | 48 |
45 test.pass_test() | 49 test.pass_test() |
OLD | NEW |