diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /media/webrtc/trunk/tools/gyp/test/actions-none | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/actions-none')
4 files changed, 72 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/actions-none/gyptest-none.py b/media/webrtc/trunk/tools/gyp/test/actions-none/gyptest-none.py new file mode 100755 index 000000000..933cfad30 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/actions-none/gyptest-none.py @@ -0,0 +1,24 @@ +#!/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 actions can be in 'none' type targets with source files. +""" + +import TestGyp + +test = TestGyp.TestGyp() + +test.run_gyp('none_with_source_files.gyp', chdir='src') + +test.relocate('src', 'relocate/src') +test.build('none_with_source_files.gyp', chdir='relocate/src') + +file_content = 'foo.cc\n' + +test.built_file_must_match('fake.out', file_content, chdir='relocate/src') + +test.pass_test() diff --git a/media/webrtc/trunk/tools/gyp/test/actions-none/src/fake_cross.py b/media/webrtc/trunk/tools/gyp/test/actions-none/src/fake_cross.py new file mode 100644 index 000000000..2913f66a6 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/actions-none/src/fake_cross.py @@ -0,0 +1,12 @@ +#!/usr/bin/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. + + +import sys + +fh = open(sys.argv[-1], 'wb') +for filename in sys.argv[1:-1]: + fh.write(open(filename).read()) +fh.close() diff --git a/media/webrtc/trunk/tools/gyp/test/actions-none/src/foo.cc b/media/webrtc/trunk/tools/gyp/test/actions-none/src/foo.cc new file mode 100644 index 000000000..c6c61745b --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/actions-none/src/foo.cc @@ -0,0 +1 @@ +foo.cc diff --git a/media/webrtc/trunk/tools/gyp/test/actions-none/src/none_with_source_files.gyp b/media/webrtc/trunk/tools/gyp/test/actions-none/src/none_with_source_files.gyp new file mode 100644 index 000000000..e2aaebc10 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/actions-none/src/none_with_source_files.gyp @@ -0,0 +1,35 @@ +# 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 that 'none' type targets can have .cc files in them. + +{ + 'targets': [ + { + 'target_name': 'none_with_sources', + 'type': 'none', + 'msvs_cygwin_shell': 0, + 'sources': [ + 'foo.cc', + ], + 'actions': [ + { + 'action_name': 'fake_cross', + 'inputs': [ + 'fake_cross.py', + '<@(_sources)', + ], + 'outputs': [ + '<(PRODUCT_DIR)/fake.out', + ], + 'action': [ + 'python', '<@(_inputs)', '<@(_outputs)', + ], + # Allows the test to run without hermetic cygwin on windows. + 'msvs_cygwin_shell': 0, + } + ], + }, + ], +} |