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

Side by Side Diff: test/defines/gyptest-defines.py

Issue 10408026: Try to fix defines containing '#' characters with cl.exe. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « test/defines/defines.gyp ('k') | test/defines/gyptest-defines-env-regyp.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2011 Google Inc. All rights reserved. 3 # Copyright (c) 2011 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 with C++ defines. 8 Verifies build of an executable with C++ defines.
9 """ 9 """
10 10
11 import TestGyp 11 import TestGyp
12 12
13 test = TestGyp.TestGyp() 13 test = TestGyp.TestGyp()
14 14
15 test.run_gyp('defines.gyp') 15 test.run_gyp('defines.gyp')
16 16
17 test.build('defines.gyp') 17 test.build('defines.gyp')
18 18
19 expect = """\ 19 expect = """\
20 FOO is defined 20 FOO is defined
21 VALUE is 1 21 VALUE is 1
22 2*PAREN_VALUE is 12 22 2*PAREN_VALUE is 12
23 HASH_VALUE is a#b 23 HASH_VALUE is a#1
24 """ 24 """
25 test.run_built_executable('defines', stdout=expect) 25 test.run_built_executable('defines', stdout=expect)
26 26
27 test.pass_test() 27 test.pass_test()
OLDNEW
« no previous file with comments | « test/defines/defines.gyp ('k') | test/defines/gyptest-defines-env-regyp.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698