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 that Makefiles don't get rebuilt when a source gyp file changes and
9
the disable_regeneration generator flag is set.
14
test = TestGyp.TestGyp()
16
test.run_gyp('hello.gyp', '-Gauto_regeneration=0')
18
test.build('hello.gyp', test.ALL)
20
test.run_built_executable('hello', stdout="Hello, world!\n")
22
# Sleep so that the changed gyp file will have a newer timestamp than the
23
# previously generated build files.
25
test.write('hello.gyp', test.read('hello2.gyp'))
27
test.build('hello.gyp', test.ALL)
29
# Should still be the old executable, as regeneration was disabled.
30
test.run_built_executable('hello', stdout="Hello, world!\n")