From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../test/variables/commands/commands-repeated.gyp | 128 +++++++++++++++++++ .../commands/commands-repeated.gyp.stdout | 136 +++++++++++++++++++++ .../commands/commands-repeated.gypd.golden | 77 ++++++++++++ .../gyp/test/variables/commands/commands.gyp | 91 ++++++++++++++ .../commands/commands.gyp.ignore-env.stdout | 96 +++++++++++++++ .../test/variables/commands/commands.gyp.stdout | 96 +++++++++++++++ .../test/variables/commands/commands.gypd.golden | 66 ++++++++++ .../gyp/test/variables/commands/commands.gypi | 23 ++++ .../commands/gyptest-commands-ignore-env.py | 47 +++++++ .../commands/gyptest-commands-repeated-multidir.py | 23 ++++ .../commands/gyptest-commands-repeated.py | 40 ++++++ .../test/variables/commands/gyptest-commands.py | 40 ++++++ .../commands/repeated_multidir/dir_1/test_1.gyp | 13 ++ .../commands/repeated_multidir/dir_2/test_2.gyp | 13 ++ .../variables/commands/repeated_multidir/main.gyp | 16 +++ .../repeated_multidir/print_cwd_basename.py | 11 ++ .../repeated_multidir/repeated_command_common.gypi | 25 ++++ .../python/gyp/test/variables/commands/test.py | 7 ++ .../gyp/test/variables/commands/update_golden | 11 ++ 19 files changed, 959 insertions(+) create mode 100644 third_party/python/gyp/test/variables/commands/commands-repeated.gyp create mode 100644 third_party/python/gyp/test/variables/commands/commands-repeated.gyp.stdout create mode 100644 third_party/python/gyp/test/variables/commands/commands-repeated.gypd.golden create mode 100644 third_party/python/gyp/test/variables/commands/commands.gyp create mode 100644 third_party/python/gyp/test/variables/commands/commands.gyp.ignore-env.stdout create mode 100644 third_party/python/gyp/test/variables/commands/commands.gyp.stdout create mode 100644 third_party/python/gyp/test/variables/commands/commands.gypd.golden create mode 100644 third_party/python/gyp/test/variables/commands/commands.gypi create mode 100755 third_party/python/gyp/test/variables/commands/gyptest-commands-ignore-env.py create mode 100755 third_party/python/gyp/test/variables/commands/gyptest-commands-repeated-multidir.py create mode 100755 third_party/python/gyp/test/variables/commands/gyptest-commands-repeated.py create mode 100755 third_party/python/gyp/test/variables/commands/gyptest-commands.py create mode 100644 third_party/python/gyp/test/variables/commands/repeated_multidir/dir_1/test_1.gyp create mode 100644 third_party/python/gyp/test/variables/commands/repeated_multidir/dir_2/test_2.gyp create mode 100644 third_party/python/gyp/test/variables/commands/repeated_multidir/main.gyp create mode 100755 third_party/python/gyp/test/variables/commands/repeated_multidir/print_cwd_basename.py create mode 100644 third_party/python/gyp/test/variables/commands/repeated_multidir/repeated_command_common.gypi create mode 100644 third_party/python/gyp/test/variables/commands/test.py create mode 100755 third_party/python/gyp/test/variables/commands/update_golden (limited to 'third_party/python/gyp/test/variables/commands') diff --git a/third_party/python/gyp/test/variables/commands/commands-repeated.gyp b/third_party/python/gyp/test/variables/commands/commands-repeated.gyp new file mode 100644 index 0000000000..1f52e75936 --- /dev/null +++ b/third_party/python/gyp/test/variables/commands/commands-repeated.gyp @@ -0,0 +1,128 @@ +# 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. + +# This is a simple test file to make sure that variable substitution +# happens correctly. Run "run_tests.py" using python to generate the +# output from this gyp file. + +{ + 'variables': { + 'pi': 'import math; print(math.pi)', + 'third_letters': "<(other_letters)HIJK", + 'letters_list': 'ABCD', + 'other_letters': '<(letters_list)EFG', + 'check_included': '<(included_variable)', + 'check_lists': [ + '<(included_variable)', + '<(third_letters)', + ], + 'check_int': 5, + 'check_str_int': '6', + 'check_list_int': [ + 7, + '8', + 9, + ], + 'not_int_1': ' 10', + 'not_int_2': '11 ', + 'not_int_3': '012', + 'not_int_4': '13.0', + 'not_int_5': '+14', + 'negative_int': '-15', + 'zero_int': '0', + }, + 'includes': [ + 'commands.gypi', + ], + 'targets': [ + { + 'target_name': 'foo', + 'type': 'none', + 'variables': { + 'var1': ' commands.gyp.stdout +python ../../../gyp --ignore-environment --debug variables --format gypd --depth . commands.gyp > commands.gyp.ignore-env.stdout +cp -f commands.gypd commands.gypd.golden +python ../../../gyp --debug variables --format gypd --depth . commands-repeated.gyp > commands-repeated.gyp.stdout +cp -f commands-repeated.gypd commands-repeated.gypd.golden -- cgit v1.2.3