Sha256: c9f45a2600d93f37b51b7218ed315c44e7e3322058bc587ae9f1c1e015c9375e

Contents?: true

Size: 1.4 KB

Versions: 39

Compression:

Stored size: 1.4 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 bundles that have no 'sources' (pure resource containers) work.
"""

import TestGyp

import sys

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

  test.run_gyp('test.gyp', chdir='sourceless-module')

  # Just needs to build without errors.
  test.build('test.gyp', 'empty_bundle', chdir='sourceless-module')
  test.built_file_must_not_exist(
      'empty_bundle.bundle', chdir='sourceless-module')

  # Needs to build, and contain a resource.
  test.build('test.gyp', 'resource_bundle', chdir='sourceless-module')

  test.built_file_must_exist(
      'resource_bundle.bundle/Contents/Resources/foo.manifest',
      chdir='sourceless-module')
  test.built_file_must_not_exist(
      'resource_bundle.bundle/Contents/MacOS/resource_bundle',
      chdir='sourceless-module')

  # Needs to build and cause the bundle to be built.
  test.build(
      'test.gyp', 'dependent_on_resource_bundle', chdir='sourceless-module')

  test.built_file_must_exist(
      'resource_bundle.bundle/Contents/Resources/foo.manifest',
      chdir='sourceless-module')
  test.built_file_must_not_exist(
      'resource_bundle.bundle/Contents/MacOS/resource_bundle',
      chdir='sourceless-module')

  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-sourceless-module.gyp
libv8-3.16.14.19 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.18 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.17 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.16 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.15 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.14 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-tmpfork-3.16.14.13 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.13 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.12 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.11 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.10 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.8 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.8.rc1 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.7 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.6 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.5 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.4 vendor/gyp/test/mac/gyptest-sourceless-module.gyp
libv8-3.16.14.3 vendor/gyp/test/mac/gyptest-sourceless-module.gyp