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

Side by Side Diff: test/make/gyptest-dependencies.py

Issue 9418017: make: don't use .target in paths or printouts (Closed) Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: simpler Created 8 years, 10 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
« pylib/gyp/generator/make.py ('K') | « test/lib/TestGyp.py ('k') | no next file » | 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 2
3 # Copyright (c) 2009 Google Inc. All rights reserved. 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 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """ 7 """
8 Verifies that .d files and all.deps are properly generated. 8 Verifies that .d files and all.deps are properly generated.
9 """ 9 """
10 10
11 import os 11 import os
12 import TestGyp 12 import TestGyp
13 13
14 # .d files are only used by the make build. 14 # .d files are only used by the make build.
15 test = TestGyp.TestGyp(formats=['make']) 15 test = TestGyp.TestGyp(formats=['make'])
16 16
17 test.run_gyp('dependencies.gyp') 17 test.run_gyp('dependencies.gyp')
18 18
19 test.build('dependencies.gyp', test.ALL) 19 test.build('dependencies.gyp', test.ALL)
20 20
21 deps_file = test.built_file_path(".deps/out/Default/obj.target/main/main.o.d") 21 deps_file = test.built_file_path(".deps/out/Default/obj/main/main.o.d")
22 test.must_contain(deps_file, "main.h") 22 test.must_contain(deps_file, "main.h")
23 23
24 # Build a second time to make sure we generate all.deps. 24 # Build a second time to make sure we generate all.deps.
25 test.build('dependencies.gyp', test.ALL) 25 test.build('dependencies.gyp', test.ALL)
26 26
27 all_deps_file = test.built_file_path(".deps/all.deps") 27 all_deps_file = test.built_file_path(".deps/all.deps")
28 test.must_contain(all_deps_file, "main.h") 28 test.must_contain(all_deps_file, "main.h")
29 test.must_contain(all_deps_file, "cmd_") 29 test.must_contain(all_deps_file, "cmd_")
30 30
31 test.pass_test() 31 test.pass_test()
OLDNEW
« pylib/gyp/generator/make.py ('K') | « test/lib/TestGyp.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698