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.
8 Verifies use of include_dirs when using the default build target.
13 test = TestGyp.TestGyp()
15 if test.format == 'scons':
16 test.skip_test('TODO: http://code.google.com/p/gyp/issues/detail?id=176\n')
18 test.run_gyp('includes.gyp', chdir='src')
20 test.relocate('src', 'relocate/src')
22 test.build('includes.gyp', test.ALL, chdir='relocate/src')
28 Hello from subdir/inc2/include2.h
29 Hello from shadow2/shadow.h
31 test.run_built_executable('includes', stdout=expect, chdir='relocate/src')
33 if test.format == 'xcode':
34 chdir='relocate/src/subdir'
39 Hello from subdir/subdir_includes.c
40 Hello from subdir/inc.h
42 Hello from subdir/inc2/include2.h
44 test.run_built_executable('subdir_includes', stdout=expect, chdir=chdir)