1#!/usr/bin/env python 2 3# Copyright (c) 2012 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 7""" 8Verifies that .d files and all.deps are properly generated. 9""" 10 11import TestGyp 12 13# .d files are only used by the make build. 14test = TestGyp.TestGyp(formats=['make']) 15 16test.run_gyp('dependencies.gyp') 17 18test.build('dependencies.gyp', test.ALL) 19 20deps_file = test.built_file_path(".deps/out/Default/obj.target/main/main.o.d") 21test.must_contain(deps_file, "main.h") 22 23# Build a second time to make sure we generate all.deps. 24test.build('dependencies.gyp', test.ALL) 25 26test.pass_test() 27