diff options
Diffstat (limited to 'deps/gyp/test/variables/filelist')
8 files changed, 0 insertions, 295 deletions
diff --git a/deps/gyp/test/variables/filelist/filelist.gyp.stdout b/deps/gyp/test/variables/filelist/filelist.gyp.stdout deleted file mode 100644 index 595a19c684..0000000000 --- a/deps/gyp/test/variables/filelist/filelist.gyp.stdout +++ /dev/null @@ -1,26 +0,0 @@ -VARIABLES:input.py:562:ExpandVariables Matches: {'content': 'names.txt <@(names', 'is_array': '', 'replace': '<|(names.txt <@(names)', 'type': '<|', 'command_string': None} -VARIABLES:input.py:562:ExpandVariables Matches: {'content': 'names', 'is_array': '', 'replace': '<@(names)', 'type': '<@', 'command_string': None} -VARIABLES:input.py:797:ExpandVariables Found output 'names.txt John Jacob Jingleheimer Schmidt', recursing. -VARIABLES:input.py:797:ExpandVariables Found output 'names.txt', recursing. -VARIABLES:input.py:562:ExpandVariables Matches: {'content': 'names_listfile', 'is_array': '', 'replace': '<(names_listfile)', 'type': '<', 'command_string': None} -VARIABLES:input.py:797:ExpandVariables Found output 'names.txt', recursing. -VARIABLES:input.py:562:ExpandVariables Matches: {'content': 'names_listfile', 'is_array': '', 'replace': '<(names_listfile)', 'type': '<', 'command_string': None} -VARIABLES:input.py:797:ExpandVariables Found output 'names.txt', recursing. -VARIABLES:input.py:562:ExpandVariables Matches: {'content': 'cat <(names_listfile', 'is_array': '', 'replace': '<!@(cat <(names_listfile)', 'type': '<!@', 'command_string': None} -VARIABLES:input.py:562:ExpandVariables Matches: {'content': 'names_listfile', 'is_array': '', 'replace': '<(names_listfile)', 'type': '<', 'command_string': None} -VARIABLES:input.py:797:ExpandVariables Found output 'cat names.txt', recursing. -VARIABLES:input.py:676:ExpandVariables Executing command 'cat names.txt' in directory 'src' -VARIABLES:input.py:797:ExpandVariables Found output ['John', 'Jacob', 'Jingleheimer', 'Schmidt'], recursing. -VARIABLES:input.py:562:ExpandVariables Matches: {'content': 'sources.txt <@(_sources', 'is_array': '', 'replace': '<|(sources.txt <@(_sources)', 'type': '<|', 'command_string': None} -VARIABLES:input.py:562:ExpandVariables Matches: {'content': '_sources', 'is_array': '', 'replace': '<@(_sources)', 'type': '<@', 'command_string': None} -VARIABLES:input.py:797:ExpandVariables Found output 'sources.txt John Jacob Jingleheimer Schmidt', recursing. -VARIABLES:input.py:797:ExpandVariables Found output 'sources.txt', recursing. -VARIABLES:input.py:562:ExpandVariables Matches: {'content': 'sources_listfile', 'is_array': '', 'replace': '<(sources_listfile)', 'type': '<', 'command_string': None} -VARIABLES:input.py:797:ExpandVariables Found output 'sources.txt', recursing. -VARIABLES:input.py:562:ExpandVariables Matches: {'content': 'sources_listfile', 'is_array': '', 'replace': '<(sources_listfile)', 'type': '<', 'command_string': None} -VARIABLES:input.py:797:ExpandVariables Found output 'sources.txt', recursing. -VARIABLES:input.py:562:ExpandVariables Matches: {'content': 'cat <(sources_listfile', 'is_array': '', 'replace': '<!@(cat <(sources_listfile)', 'type': '<!@', 'command_string': None} -VARIABLES:input.py:562:ExpandVariables Matches: {'content': 'sources_listfile', 'is_array': '', 'replace': '<(sources_listfile)', 'type': '<', 'command_string': None} -VARIABLES:input.py:797:ExpandVariables Found output 'cat sources.txt', recursing. -VARIABLES:input.py:676:ExpandVariables Executing command 'cat sources.txt' in directory 'src' -VARIABLES:input.py:797:ExpandVariables Found output ['John', 'Jacob', 'Jingleheimer', 'Schmidt'], recursing. diff --git a/deps/gyp/test/variables/filelist/filelist.gypd.golden b/deps/gyp/test/variables/filelist/filelist.gypd.golden deleted file mode 100644 index 09d9116047..0000000000 --- a/deps/gyp/test/variables/filelist/filelist.gypd.golden +++ /dev/null @@ -1,43 +0,0 @@ -{'_DEPTH': '.', - 'included_files': ['filelist.gyp'], - 'targets': [{'actions': [{'action': ['python', 'dummy.py', 'names.txt'], - 'action_name': 'test_action', - 'inputs': ['names.txt', - 'John', - 'Jacob', - 'Jingleheimer', - 'Schmidt'], - 'outputs': ['dummy_foo']}], - 'configurations': {'Default': {}}, - 'default_configuration': 'Default', - 'target_name': 'foo', - 'toolset': 'target', - 'type': 'none', - 'variables': {'names_listfile': 'names.txt'}}, - {'actions': [{'action': ['python', 'dummy.py', 'sources.txt'], - 'action_name': 'test_action', - 'inputs': ['sources.txt', - 'John', - 'Jacob', - 'Jingleheimer', - 'Schmidt'], - 'outputs': ['dummy_foo']}], - 'configurations': {'Default': {}}, - 'default_configuration': 'Default', - 'sources': ['John', 'Jacob', 'Jingleheimer', 'Schmidt'], - 'sources_excluded': ['Astor', 'Jerome', 'Schultz'], - 'target_name': 'bar', - 'toolset': 'target', - 'type': 'none', - 'variables': {'sources_listfile': 'sources.txt'}}], - 'variables': {'names': ['John', - 'Jacob', - 'Astor', - 'Jingleheimer', - 'Jerome', - 'Schmidt', - 'Schultz'], - 'names!': ['Astor'], - 'names/': [['exclude', 'Sch.*'], - ['include', '.*dt'], - ['exclude', 'Jer.*']]}} diff --git a/deps/gyp/test/variables/filelist/gyptest-filelist-golden.py b/deps/gyp/test/variables/filelist/gyptest-filelist-golden.py deleted file mode 100644 index 55eaf9db46..0000000000 --- a/deps/gyp/test/variables/filelist/gyptest-filelist-golden.py +++ /dev/null @@ -1,51 +0,0 @@ -#!/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. - -""" -Test variable expansion of '<|(list.txt ...)' syntax commands. -""" - -import os -import sys - -import TestGyp - -test = TestGyp.TestGyp(format='gypd') - -expect = test.read('filelist.gyp.stdout') -if sys.platform == 'win32': - expect = expect.replace('/', r'\\').replace('\r\n', '\n') - -test.run_gyp('src/filelist.gyp', - '--debug', 'variables', - stdout=expect, ignore_line_numbers=True) - -# Verify the filelist.gypd against the checked-in expected contents. -# -# Normally, we should canonicalize line endings in the expected -# contents file setting the Subversion svn:eol-style to native, -# but that would still fail if multiple systems are sharing a single -# workspace on a network-mounted file system. Consequently, we -# massage the Windows line endings ('\r\n') in the output to the -# checked-in UNIX endings ('\n'). - -contents = test.read('src/filelist.gypd').replace( - '\r', '').replace('\\\\', '/') -expect = test.read('filelist.gypd.golden').replace('\r', '') -if not test.match(contents, expect): - print "Unexpected contents of `src/filelist.gypd'" - test.diff(expect, contents, 'src/filelist.gypd ') - test.fail_test() - -contents = test.read('src/names.txt') -expect = 'John\nJacob\nJingleheimer\nSchmidt\n' -if not test.match(contents, expect): - print "Unexpected contents of `src/names.txt'" - test.diff(expect, contents, 'src/names.txt ') - test.fail_test() - -test.pass_test() - diff --git a/deps/gyp/test/variables/filelist/gyptest-filelist.py b/deps/gyp/test/variables/filelist/gyptest-filelist.py deleted file mode 100755 index 84a6cba5f4..0000000000 --- a/deps/gyp/test/variables/filelist/gyptest-filelist.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/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. - -""" -Test variable expansion of '<|(list.txt ...)' syntax commands. -""" - -import os -import sys - -import TestGyp - -test = TestGyp.TestGyp() - -CHDIR = 'src' -test.run_gyp('filelist2.gyp', chdir=CHDIR) - -test.build('filelist2.gyp', 'foo', chdir=CHDIR) -contents = test.read('src/dummy_foo').replace('\r', '') -expect = 'John\nJacob\nJingleheimer\nSchmidt\n' -if not test.match(contents, expect): - print "Unexpected contents of `src/dummy_foo'" - test.diff(expect, contents, 'src/dummy_foo') - test.fail_test() - -test.pass_test() diff --git a/deps/gyp/test/variables/filelist/src/dummy.py b/deps/gyp/test/variables/filelist/src/dummy.py deleted file mode 100644 index e41fc9f8e4..0000000000 --- a/deps/gyp/test/variables/filelist/src/dummy.py +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env python - -import sys - -open(sys.argv[1], 'w').write(open(sys.argv[2]).read()) diff --git a/deps/gyp/test/variables/filelist/src/filelist.gyp b/deps/gyp/test/variables/filelist/src/filelist.gyp deleted file mode 100644 index df48eb3e4a..0000000000 --- a/deps/gyp/test/variables/filelist/src/filelist.gyp +++ /dev/null @@ -1,93 +0,0 @@ -# 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 test to make sure that <|(foo.txt a b c) generates -# a pre-calculated file list at gyp time and returns foo.txt. -# This feature is useful to work around limits in the number of arguments that -# can be passed to rule/action. - -{ - 'variables': { - 'names': [ - 'John', - 'Jacob', - 'Astor', - 'Jingleheimer', - 'Jerome', - 'Schmidt', - 'Schultz', - ], - 'names!': [ - 'Astor', - ], - 'names/': [ - ['exclude', 'Sch.*'], - ['include', '.*dt'], - ['exclude', 'Jer.*'], - ], - }, - 'targets': [ - { - 'target_name': 'foo', - 'type': 'none', - 'variables': { - 'names_listfile': '<|(names.txt <@(names))', - }, - 'actions': [ - { - 'action_name': 'test_action', - 'inputs' : [ - '<(names_listfile)', - '<!@(cat <(names_listfile))', - ], - 'outputs': [ - 'dummy_foo', - ], - 'action': [ - 'python', 'dummy.py', '<(names_listfile)', - ], - }, - ], - }, - { - 'target_name': 'bar', - 'type': 'none', - 'sources': [ - 'John', - 'Jacob', - 'Astor', - 'Jingleheimer', - 'Jerome', - 'Schmidt', - 'Schultz', - ], - 'sources!': [ - 'Astor', - ], - 'sources/': [ - ['exclude', 'Sch.*'], - ['include', '.*dt'], - ['exclude', 'Jer.*'], - ], - 'variables': { - 'sources_listfile': '<|(sources.txt <@(_sources))', - }, - 'actions': [ - { - 'action_name': 'test_action', - 'inputs' : [ - '<(sources_listfile)', - '<!@(cat <(sources_listfile))', - ], - 'outputs': [ - 'dummy_foo', - ], - 'action': [ - 'python', 'dummy.py', '<(sources_listfile)', - ], - }, - ], - }, - ], -} diff --git a/deps/gyp/test/variables/filelist/src/filelist2.gyp b/deps/gyp/test/variables/filelist/src/filelist2.gyp deleted file mode 100644 index ec215dbb76..0000000000 --- a/deps/gyp/test/variables/filelist/src/filelist2.gyp +++ /dev/null @@ -1,40 +0,0 @@ -# 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. - -# This is a test to make sure that <|(foo.txt a b c) generates -# a pre-calculated file list at gyp time and returns foo.txt. -# This feature is useful to work around limits in the number of arguments that -# can be passed to rule/action. - -{ - 'variables': { - 'names': [ - 'John', - 'Jacob', - 'Jingleheimer', - 'Schmidt', - ], - }, - 'targets': [ - { - 'target_name': 'foo', - 'type': 'none', - 'variables': { - 'names_listfile': '<|(names.txt <@(names))', - }, - 'actions': [ - { - 'action_name': 'test_action', - 'msvs_cygwin_shell': 0, - 'inputs' : [ '<(names_listfile)' ], - 'outputs': [ 'dummy_foo' ], - 'action': [ - 'python', 'dummy.py', '<@(_outputs)', '<(names_listfile)', - ], - }, - ], - }, - ], -} - diff --git a/deps/gyp/test/variables/filelist/update_golden b/deps/gyp/test/variables/filelist/update_golden deleted file mode 100755 index b4d489a342..0000000000 --- a/deps/gyp/test/variables/filelist/update_golden +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -# 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. - -python ../../../gyp --debug variables --debug general --format gypd --depth . src/filelist.gyp > filelist.gyp.stdout -cp -f src/filelist.gypd filelist.gypd.golden |