1#!/usr/bin/env python 2 3# Copyright (c) 2014 Google Inc. All rights reserved. 4# Use of this source code is governed by a BSD-style license that can be 5# found in the LICENSE file. 6 7""" 8Tests that loadable_modules don't collide when using the same name with 9different file extensions. 10""" 11 12import TestGyp 13 14import os 15import struct 16import sys 17 18if sys.platform == 'darwin': 19 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) 20 21 CHDIR = 'loadable-module-bundle-product-extension' 22 test.run_gyp('test.gyp', 23 '-G', 'xcode_ninja_target_pattern=^.*$', 24 chdir=CHDIR) 25 26 test.build('test.gyp', test.ALL, chdir=CHDIR) 27 28 test.must_exist(test.built_file_path('Collide.foo', chdir=CHDIR)) 29 test.must_exist(test.built_file_path('Collide.bar', chdir=CHDIR)) 30 31 test.pass_test() 32