OLD | NEW |
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 Loading... |
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() |
OLD | NEW |