Sha256: 2d3b7a1729936c113cb398e13af63fed74bfed087ef897a5ad1c203cf3b7327c

Contents?: true

Size: 828 Bytes

Versions: 5

Compression:

Stored size: 828 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 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

5 entries across 5 versions & 2 rubygems

Version Path
mt-libuv-4.1.04 ext/gyp/test/hello/gyptest-regyp.py
mt-libuv-4.1.03 ext/gyp/test/hello/gyptest-regyp.py
mt-libuv-4.1.02 ext/gyp/test/hello/gyptest-regyp.py
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/gyp/test/hello/gyptest-regyp.py
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/gyp/test/hello/gyptest-regyp.py