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 in three different configurations. | 8 Verifies build of an executable in three different configurations. |
5 """ | 9 """ |
6 | 10 |
7 import TestGyp | 11 import TestGyp |
8 | 12 |
9 test = TestGyp.TestGyp() | 13 test = TestGyp.TestGyp() |
10 | 14 |
11 test.run_gyp('configurations.gyp') | 15 test.run_gyp('configurations.gyp') |
12 | 16 |
13 test.set_configuration('Release') | 17 test.set_configuration('Release') |
14 test.build('configurations.gyp') | 18 test.build('configurations.gyp') |
15 test.run_built_executable('configurations', stdout="Release configuration\n") | 19 test.run_built_executable('configurations', stdout="Release configuration\n") |
16 | 20 |
17 test.set_configuration('Debug') | 21 test.set_configuration('Debug') |
18 test.build('configurations.gyp') | 22 test.build('configurations.gyp') |
19 test.run_built_executable('configurations', stdout="Debug configuration\n") | 23 test.run_built_executable('configurations', stdout="Debug configuration\n") |
20 | 24 |
21 test.set_configuration('Foo') | 25 test.set_configuration('Foo') |
22 test.build('configurations.gyp') | 26 test.build('configurations.gyp') |
23 test.run_built_executable('configurations', stdout="Foo configuration\n") | 27 test.run_built_executable('configurations', stdout="Foo configuration\n") |
24 | 28 |
25 test.pass_test() | 29 test.pass_test() |
OLD | NEW |