OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2009 Google Inc. All rights reserved. | 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 | 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 build of an executable in three different configurations. | 8 Verifies build of an executable in three different configurations. |
9 """ | 9 """ |
10 | 10 |
11 import TestGyp | 11 import TestGyp |
12 | 12 |
13 test = TestGyp.TestGyp() | 13 test = TestGyp.TestGyp() |
14 | 14 |
15 if test.format == 'android': | |
16 # This test currently fails on android. Investigate why, fix the issues | |
17 # responsible, and reenable this test on android. See bug: | |
18 # https://code.google.com/p/gyp/issues/detail?id=436 | |
19 test.skip_test(message='Test fails on android. Fix and reenable.\n') | |
20 | |
21 test.run_gyp('configurations.gyp') | 15 test.run_gyp('configurations.gyp') |
22 | 16 |
23 test.set_configuration('Release') | 17 test.set_configuration('Release') |
24 test.build('configurations.gyp') | 18 test.build('configurations.gyp') |
25 test.run_built_executable('configurations', stdout="Release configuration\n") | 19 test.run_built_executable('configurations', stdout="Release configuration\n") |
26 | 20 |
27 test.set_configuration('Debug') | 21 test.set_configuration('Debug') |
28 test.build('configurations.gyp') | 22 test.build('configurations.gyp') |
29 test.run_built_executable('configurations', stdout="Debug configuration\n") | 23 test.run_built_executable('configurations', stdout="Debug configuration\n") |
30 | 24 |
31 test.set_configuration('Foo') | 25 test.set_configuration('Foo') |
32 test.build('configurations.gyp') | 26 test.build('configurations.gyp') |
33 test.run_built_executable('configurations', stdout="Foo configuration\n") | 27 test.run_built_executable('configurations', stdout="Foo configuration\n") |
34 | 28 |
35 test.pass_test() | 29 test.pass_test() |
OLD | NEW |