Sha256: db4fc4ae83406cee36f9a437228a84fd8e9bf6485ee7804dad0e92eec04b2bfa

Contents?: true

Size: 801 Bytes

Versions: 4

Compression:

Stored size: 801 Bytes

Contents

#!/usr/bin/env python

# Copyright (c) 2014 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.

"""
Tests that loadable_modules don't collide when using the same name with
different file extensions.
"""

import TestGyp

import os
import struct
import sys

if sys.platform == 'darwin':
  test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])

  CHDIR = 'loadable-module-bundle-product-extension'
  test.run_gyp('test.gyp',
               '-G', 'xcode_ninja_target_pattern=^.*$',
               chdir=CHDIR)

  test.build('test.gyp', test.ALL, chdir=CHDIR)

  test.must_exist(test.built_file_path('Collide.foo', chdir=CHDIR))
  test.must_exist(test.built_file_path('Collide.bar', chdir=CHDIR))

  test.pass_test()

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
mt-libuv-4.1.04 ext/gyp/test/mac/gyptest-loadable-module-bundle-product-extension.py
mt-libuv-4.1.03 ext/gyp/test/mac/gyptest-loadable-module-bundle-product-extension.py
mt-libuv-4.1.02 ext/gyp/test/mac/gyptest-loadable-module-bundle-product-extension.py
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-loadable-module-bundle-product-extension.py