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

Side by Side Diff: trunk/test/variables/gyptest-commands.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 Test variable expansion of '<!()' syntax commands. 8 Test variable expansion of '<!()' syntax commands.
5 """ 9 """
6 10
7 import os 11 import os
8 12
9 import TestGyp 13 import TestGyp
10 14
11 test = TestGyp.TestGyp(format='gypd') 15 test = TestGyp.TestGyp(format='gypd')
12 16
(...skipping 18 matching lines...) Expand all
31 # checked-in UNIX endings ('\n'). 35 # checked-in UNIX endings ('\n').
32 36
33 contents = test.read('commands.gypd').replace('\r\n', '\n') 37 contents = test.read('commands.gypd').replace('\r\n', '\n')
34 expect = test.read('commands.gypd.golden') 38 expect = test.read('commands.gypd.golden')
35 if not test.match(contents, expect): 39 if not test.match(contents, expect):
36 print "Unexpected contents of `commands.gypd'" 40 print "Unexpected contents of `commands.gypd'"
37 self.diff(expect, contents, 'commands.gypd ') 41 self.diff(expect, contents, 'commands.gypd ')
38 test.fail_test() 42 test.fail_test()
39 43
40 test.pass_test() 44 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698