Sha256: f3d926f107c6f79849af2f85553ba82c500f0b68058f4cddd294327905301577

Contents?: true

Size: 1.02 KB

Versions: 16

Compression:

Stored size: 1.02 KB

Contents

#!/usr/bin/env python

# Copyright (c) 2011 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 two actions can be attached to the same input files.
"""

import TestGyp

test = TestGyp.TestGyp()

test.run_gyp('actions.gyp', chdir='src')

test.relocate('src', 'relocate/src')

# Test that two actions can be attached to the same inputs.
test.build('actions.gyp', test.ALL, chdir='relocate/src')
test.must_contain('relocate/src/output1.txt', 'hello there')
test.must_contain('relocate/src/output2.txt', 'hello there')
test.must_contain('relocate/src/output3.txt', 'hello there')
test.must_contain('relocate/src/output4.txt', 'hello there')

# Test that process_outputs_as_sources works in conjuction with merged
# actions.
test.run_built_executable(
    'multiple_action_source_filter',
    chdir='relocate/src',
    stdout=(
        '{\n'
        'bar\n'
        'car\n'
        'dar\n'
        'ear\n'
        '}\n'
    ),
)


test.pass_test()

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
libv8-3.11.8.17 vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py
libv8-3.11.8.16 vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py
libv8-3.11.8.13 vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py
libv8-3.11.8.12 vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/libv8-3.11.8.4/vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py
libv8-3.11.8.11 vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py
libv8-3.11.8.10 vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py
libv8-3.11.8.9 vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py
libv8-3.11.8.8 vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py
libv8-3.11.8.7 vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py
libv8-3.11.8.4 vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py
libv8-freebsd-3.11.8.3 vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py
libv8-3.11.8.3 vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py
libv8-3.11.8.1 vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py
libv8-3.11.8.0 vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py
libv8-3.10.8.0 vendor/v8/build/gyp/test/actions-multiple/gyptest-all.py