Sha256: ac6115b71942abecb74939b93086caf2c9ac3bf2359ab87f03b6b3364e1d3a0c

Contents?: true

Size: 1.15 KB

Versions: 24

Compression:

Stored size: 1.15 KB

Contents

#!/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 cases when multiple targets in different directories have the same name.
"""

import TestGyp

test = TestGyp.TestGyp(formats=['android', 'ninja', 'make'])

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

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

# Test that we build all targets.
test.build('subdirs.gyp', 'target', chdir='relocate/src')
test.must_exist('relocate/src/subdir1/action1.txt')
test.must_exist('relocate/src/subdir2/action2.txt')

# Test that we build all targets using the correct actions, even if they have
# the same names.
test.build('subdirs.gyp', 'target_same_action_name', chdir='relocate/src')
test.must_exist('relocate/src/subdir1/action.txt')
test.must_exist('relocate/src/subdir2/action.txt')

# Test that we build all targets using the correct rules, even if they have
# the same names.
test.build('subdirs.gyp', 'target_same_rule_name', chdir='relocate/src')
test.must_exist('relocate/src/subdir1/rule.txt')
test.must_exist('relocate/src/subdir2/rule.txt')

test.pass_test()

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
libv8-3.16.14.19.1 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.19 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.18 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/gyp/test/same-target-name-different-directory/gyptest-all.py
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.17 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.16 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.15 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.14 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-tmpfork-3.16.14.13 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.13 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.12 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.11 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.10 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.8 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.8.rc1 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.7 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.6 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.5 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py
libv8-3.16.14.4 vendor/gyp/test/same-target-name-different-directory/gyptest-all.py