• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"""
8Verifies that a dependency on a bundle causes the whole bundle to be built.
9"""
10
11import TestGyp
12
13import sys
14
15if sys.platform == 'darwin':
16  print "This test is currently disabled: https://crbug.com/483696."
17  sys.exit(0)
18
19  test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
20
21  test.run_gyp('test.gyp', chdir='depend-on-bundle')
22
23  test.build('test.gyp', 'dependent_on_bundle', chdir='depend-on-bundle')
24
25  # Binary itself.
26  test.built_file_must_exist('dependent_on_bundle', chdir='depend-on-bundle')
27
28  # Bundle dependency.
29  test.built_file_must_exist(
30      'my_bundle.framework/Versions/A/my_bundle',
31      chdir='depend-on-bundle')
32  test.built_file_must_exist(  # package_framework
33      'my_bundle.framework/my_bundle',
34      chdir='depend-on-bundle')
35  test.built_file_must_exist(  # plist
36      'my_bundle.framework/Versions/A/Resources/Info.plist',
37      chdir='depend-on-bundle')
38  test.built_file_must_exist(
39      'my_bundle.framework/Versions/A/Resources/English.lproj/'  # Resources
40      'InfoPlist.strings',
41      chdir='depend-on-bundle')
42
43  test.pass_test()
44