Sha256: 071b396bb007c4c4ce161d343248ea99783b7c7d47b52e9771d8f4e894dedba4

Contents?: true

Size: 1.28 KB

Versions: 23

Compression:

Stored size: 1.28 KB

Contents

#!/usr/bin/env python

# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""
Verifies inclusion of $HOME/.gyp/include.gypi works properly with relocation
and with regeneration.
"""

import os
import TestGyp

# Regenerating build files when a gyp file changes is currently only supported
# by the make and Android generators.
test = TestGyp.TestGyp(formats=['make', 'android'])

os.environ['HOME'] = os.path.abspath('home')

test.run_gyp('all.gyp', chdir='src')

# After relocating, we should still be able to build (build file shouldn't
# contain relative reference to ~/.gyp/include.gypi)
test.relocate('src', 'relocate/src')

test.build('all.gyp', test.ALL, chdir='relocate/src')

test.run_built_executable('printfoo',
                          chdir='relocate/src',
                          stdout='FOO is fromhome\n')

# Building should notice any changes to ~/.gyp/include.gypi and regyp.
test.sleep()

test.write('home/.gyp/include.gypi', test.read('home2/.gyp/include.gypi'))

test.build('all.gyp', test.ALL, chdir='relocate/src')

test.run_built_executable('printfoo',
                          chdir='relocate/src',
                          stdout='FOO is fromhome2\n')

test.pass_test()

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
libv8-3.16.14.19.1 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.19 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.18 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.17 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.16 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.15 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.14 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-tmpfork-3.16.14.13 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.13 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.12 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.11 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.10 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.8 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.8.rc1 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.7 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.6 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.5 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.4 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
libv8-3.16.14.3 vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py