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

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

Issue 383893003: Fixes two bugs in analyzer (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Created 6 years, 5 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 | « pylib/gyp/generator/analyzer.py ('k') | test/analyzer/subdir/subdir2/subdir2.gyp » ('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 # 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
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()
OLDNEW
« no previous file with comments | « pylib/gyp/generator/analyzer.py ('k') | test/analyzer/subdir/subdir2/subdir2.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698