OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2014 Google Inc. All rights reserved. | 2 # Copyright (c) 2014 Google Inc. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Tests for analyzer | 6 """Tests for analyzer |
7 """ | 7 """ |
8 | 8 |
9 import TestGyp | 9 import TestGyp |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 test.run_gyp('test.gyp', '-Gfile_path=test_file', stdout=not_found) | 66 test.run_gyp('test.gyp', '-Gfile_path=test_file', stdout=not_found) |
67 | 67 |
68 # Path specified via a variable. | 68 # Path specified via a variable. |
69 __CreateTestFile(['subdir/subdir_source2.c']) | 69 __CreateTestFile(['subdir/subdir_source2.c']) |
70 test.run_gyp('test.gyp', '-Gfile_path=test_file', stdout=found) | 70 test.run_gyp('test.gyp', '-Gfile_path=test_file', stdout=found) |
71 | 71 |
72 # Verifies paths with // are fixed up correctly. | 72 # Verifies paths with // are fixed up correctly. |
73 __CreateTestFile(['parent_source.c']) | 73 __CreateTestFile(['parent_source.c']) |
74 test.run_gyp('test.gyp', '-Gfile_path=test_file', stdout=found) | 74 test.run_gyp('test.gyp', '-Gfile_path=test_file', stdout=found) |
75 | 75 |
| 76 # Verifies relative paths are resolved correctly. |
| 77 __CreateTestFile(['subdir/subdir_source.h']) |
| 78 test.run_gyp('test.gyp', '-Gfile_path=test_file', stdout=found) |
| 79 |
76 test.pass_test() | 80 test.pass_test() |
OLD | NEW |