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 inclusion of $HOME/.gyp/includes.gypi works properly with relocation
15
# Regenerating build files when a gyp file changes is currently only supported
16
# by the make generator.
17
test = TestGyp.TestGyp(formats=['make'])
19
os.environ['HOME'] = os.path.abspath('home')
21
test.run_gyp('all.gyp', chdir='src')
23
# After relocating, we should still be able to build (build file shouldn't
24
# contain relative reference to ~/.gyp/includes.gypi)
25
test.relocate('src', 'relocate/src')
27
test.build('all.gyp', test.ALL, chdir='relocate/src')
29
test.run_built_executable('printfoo',
31
stdout="FOO is fromhome\n");
33
# Building should notice any changes to ~/.gyp/includes.gypi and regyp.
36
test.write('home/.gyp/include.gypi', test.read('home2/.gyp/include.gypi'))
38
test.build('all.gyp', test.ALL, chdir='relocate/src')
40
test.run_built_executable('printfoo',
42
stdout="FOO is fromhome2\n");