Sha256: a800677771223bdfb3dc438875f0d89665ee9df5a190821829c029be994bcc33

Contents?: true

Size: 828 Bytes

Versions: 16

Compression:

Stored size: 828 Bytes

Contents

#!/usr/bin/env python

# Copyright (c) 2009 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 generator.
test = TestGyp.TestGyp(formats=['make'])

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

16 entries across 16 versions & 3 rubygems

Version Path
libv8-3.11.8.17 vendor/v8/build/gyp/test/hello/gyptest-regyp.py
libv8-3.11.8.16 vendor/v8/build/gyp/test/hello/gyptest-regyp.py
libv8-3.11.8.13 vendor/v8/build/gyp/test/hello/gyptest-regyp.py
libv8-3.11.8.12 vendor/v8/build/gyp/test/hello/gyptest-regyp.py
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/libv8-3.11.8.4/vendor/v8/build/gyp/test/hello/gyptest-regyp.py
libv8-3.11.8.11 vendor/v8/build/gyp/test/hello/gyptest-regyp.py
libv8-3.11.8.10 vendor/v8/build/gyp/test/hello/gyptest-regyp.py
libv8-3.11.8.9 vendor/v8/build/gyp/test/hello/gyptest-regyp.py
libv8-3.11.8.8 vendor/v8/build/gyp/test/hello/gyptest-regyp.py
libv8-3.11.8.7 vendor/v8/build/gyp/test/hello/gyptest-regyp.py
libv8-3.11.8.4 vendor/v8/build/gyp/test/hello/gyptest-regyp.py
libv8-freebsd-3.11.8.3 vendor/v8/build/gyp/test/hello/gyptest-regyp.py
libv8-3.11.8.3 vendor/v8/build/gyp/test/hello/gyptest-regyp.py
libv8-3.11.8.1 vendor/v8/build/gyp/test/hello/gyptest-regyp.py
libv8-3.11.8.0 vendor/v8/build/gyp/test/hello/gyptest-regyp.py
libv8-3.10.8.0 vendor/v8/build/gyp/test/hello/gyptest-regyp.py