1 #!/usr/bin/env python 2 3 # Copyright (c) 2012 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 """ 8 Verifies that a dependency on a bundle causes the whole bundle to be built. 9 """ 10 11 import TestGyp 12 13 import sys 14 15 if sys.platform == 'darwin': 16 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) 17 18 test.run_gyp('test.gyp', chdir='depend-on-bundle') 19 20 test.build('test.gyp', 'dependent_on_bundle', chdir='depend-on-bundle') 21 22 # Binary itself. 23 test.built_file_must_exist('dependent_on_bundle', chdir='depend-on-bundle') 24 25 # Bundle dependency. 26 test.built_file_must_exist( 27 'my_bundle.framework/Versions/A/my_bundle', 28 chdir='depend-on-bundle') 29 test.built_file_must_exist( # package_framework 30 'my_bundle.framework/my_bundle', 31 chdir='depend-on-bundle') 32 test.built_file_must_exist( # plist 33 'my_bundle.framework/Versions/A/Resources/Info.plist', 34 chdir='depend-on-bundle') 35 test.built_file_must_exist( 36 'my_bundle.framework/Versions/A/Resources/English.lproj/' # Resources 37 'InfoPlist.strings', 38 chdir='depend-on-bundle') 39 40 test.pass_test() 41