OLD | NEW |
---|---|
(Empty) | |
1 #!/usr/bin/env python | |
2 | |
3 # Copyright (c) 2014 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 | |
7 """ | |
8 Verify that "else-if" conditons work. | |
scottmg
2014/11/14 17:09:44
conditons -> conditions
| |
9 """ | |
10 | |
11 import TestGyp | |
12 | |
13 test = TestGyp.TestGyp(formats=['msvs', 'ninja']) | |
scottmg
2014/11/14 17:09:44
should be all generators
| |
14 | |
15 test.run_gyp('elseif.gyp') | |
16 test.build('elseif.gyp', test.ALL) | |
17 test.run_built_executable( | |
18 'program', stdout='first_if\n') | |
19 | |
20 test.run_gyp('elseif.gyp', '-Dtest_var=1') | |
21 test.build('elseif.gyp', test.ALL) | |
22 test.run_built_executable( | |
23 'program', stdout='first_else_if\n') | |
24 | |
25 test.run_gyp('elseif.gyp', '-Dtest_var=2') | |
26 test.build('elseif.gyp', test.ALL) | |
27 test.run_built_executable( | |
28 'program', stdout='second_else_if\n') | |
29 | |
30 test.run_gyp('elseif.gyp', '-Dtest_var=3') | |
31 test.build('elseif.gyp', test.ALL) | |
32 test.run_built_executable( | |
33 'program', stdout='third_else_if\n') | |
34 | |
35 test.run_gyp('elseif.gyp', '-Dtest_var=4') | |
36 test.build('elseif.gyp', test.ALL) | |
37 test.run_built_executable( | |
38 'program', stdout='last_else\n') | |
39 | |
40 test.pass_test() | |
OLD | NEW |