From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../python/gyp/test/hello/gyptest-regyp-output.py | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 third_party/python/gyp/test/hello/gyptest-regyp-output.py (limited to 'third_party/python/gyp/test/hello/gyptest-regyp-output.py') diff --git a/third_party/python/gyp/test/hello/gyptest-regyp-output.py b/third_party/python/gyp/test/hello/gyptest-regyp-output.py new file mode 100644 index 0000000000..fd88a85503 --- /dev/null +++ b/third_party/python/gyp/test/hello/gyptest-regyp-output.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python + +# Copyright (c) 2013 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 and +--generator-output is used. +""" + +import TestGyp + +# Regenerating build files when a gyp file changes is currently only supported +# by the make generator, and --generator-output is not supported by ninja, so we +# can only test for make. +test = TestGyp.TestGyp(formats=['make']) + +CHDIR='generator-output' + +test.run_gyp('hello.gyp', '--generator-output=%s' % CHDIR) + +test.build('hello.gyp', test.ALL, chdir=CHDIR) + +test.run_built_executable('hello', stdout="Hello, world!\n", chdir=CHDIR) + +# 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, chdir=CHDIR) + +test.run_built_executable('hello', stdout="Hello, two!\n", chdir=CHDIR) + +test.pass_test() -- cgit v1.2.3