Sha256: 0b5d9d901ec7da5a3beef9588f314464e414a7602b62485fb814f11a67692ba3

Contents?: true

Size: 852 Bytes

Versions: 23

Compression:

Stored size: 852 Bytes

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 that Makefiles get rebuilt when a source gyp file changes.
"""

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'])

test.run_gyp('hello.gyp')

test.build('hello.gyp', test.ALL)

test.run_built_executable('hello', stdout="Hello, world!\n")

# Sleep so that the changed gyp file will have a newer timestamp than the
# previously generated build files.
test.sleep()
test.write('hello.gyp', test.read('hello2.gyp'))

test.build('hello.gyp', test.ALL)

test.run_built_executable('hello', stdout="Hello, two!\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/hello/gyptest-regyp.py
libv8-3.16.14.19 vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.18 vendor/gyp/test/hello/gyptest-regyp.py
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.17 vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.16 vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.15 vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.14 vendor/gyp/test/hello/gyptest-regyp.py
libv8-tmpfork-3.16.14.13 vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.13 vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.12 vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.11 vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.10 vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.8 vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.8.rc1 vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.7 vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.6 vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.5 vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.4 vendor/gyp/test/hello/gyptest-regyp.py
libv8-3.16.14.3 vendor/gyp/test/hello/gyptest-regyp.py