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

Side by Side Diff: trunk/test/defines/gyptest-defines-env-regyp.py

Issue 306051: Add AUTHORS and LICENSE files, and copyright headers to relevant source files... (Closed) Base URL: http://gyp.googlecode.com/svn/
Patch Set: '' Created 11 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
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 with C++ define specified by a gyp define, and 8 Verifies build of an executable with C++ define specified by a gyp define, and
5 the use of the environment during regeneration when the gyp file changes. 9 the use of the environment during regeneration when the gyp file changes.
6 """ 10 """
7 11
8 import os 12 import os
9 import TestGyp 13 import TestGyp
10 14
11 # Regenerating build files when a gyp file changes is currently only supported 15 # Regenerating build files when a gyp file changes is currently only supported
12 # by the make generator. 16 # by the make generator.
(...skipping 23 matching lines...) Expand all
36 test.write('defines.gyp', test.read('defines-env.gyp')) 40 test.write('defines.gyp', test.read('defines-env.gyp'))
37 41
38 test.build('defines.gyp', test.ALL) 42 test.build('defines.gyp', test.ALL)
39 43
40 expect = """\ 44 expect = """\
41 VALUE is 50 45 VALUE is 50
42 """ 46 """
43 test.run_built_executable('defines', stdout=expect) 47 test.run_built_executable('defines', stdout=expect)
44 48
45 test.pass_test() 49 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698