Sha256: e7535377b81be02f55e976db34f8fd19da190fed6c635988f717998633b23e73

Contents?: true

Size: 1.38 KB

Versions: 39

Compression:

Stored size: 1.38 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.

"""
Verifies that app bundles are built correctly.
"""

import TestGyp

import sys

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

  test.run_gyp('test.gyp', chdir='app-bundle')

  test.build('test.gyp', test.ALL, chdir='app-bundle')

  # Binary
  test.built_file_must_exist('Test App Gyp.app/Contents/MacOS/Test App Gyp',
                             chdir='app-bundle')

  # Info.plist
  info_plist = test.built_file_path('Test App Gyp.app/Contents/Info.plist',
                                    chdir='app-bundle')
  test.must_exist(info_plist)
  test.must_contain(info_plist, 'com.google.Test App Gyp')  # Variable expansion

  # Resources
  test.built_file_must_exist(
      'Test App Gyp.app/Contents/Resources/English.lproj/InfoPlist.strings',
      chdir='app-bundle')
  test.built_file_must_exist(
      'Test App Gyp.app/Contents/Resources/English.lproj/MainMenu.nib',
      chdir='app-bundle')

  # Packaging
  test.built_file_must_exist('Test App Gyp.app/Contents/PkgInfo',
                             chdir='app-bundle')
  test.built_file_must_match('Test App Gyp.app/Contents/PkgInfo', 'APPLause',
                             chdir='app-bundle')


  test.pass_test()

Version data entries

39 entries across 39 versions & 5 rubygems

Version Path
libv8-3.16.14.19.1 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.19 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.18 vendor/gyp/test/mac/gyptest-app.py
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.17 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.16 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.15 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.14 vendor/gyp/test/mac/gyptest-app.py
libv8-tmpfork-3.16.14.13 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.13 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.12 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.11 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.10 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.8 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.8.rc1 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.7 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.6 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.5 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.4 vendor/gyp/test/mac/gyptest-app.py
libv8-3.16.14.3 vendor/gyp/test/mac/gyptest-app.py