Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: test/conditions/elseif/gyptest_elseif.py

Issue 601353002: Add support for "else if" in gyp conditions (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698