Sha256: c17a541ea1ef10ffce3040e1a2e6e77f4c31d279ebb8137f44dfbb29ed2b1f91

Contents?: true

Size: 1.24 KB

Versions: 16

Compression:

Stored size: 1.24 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 rebuilt correctly.
"""

import TestGyp

import os
import sys

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

  CHDIR = 'rebuild'
  test.run_gyp('test.gyp', chdir=CHDIR)

  test.build('test.gyp', 'test_app', chdir=CHDIR)

  # Touch a source file, rebuild, and check that the app target is up-to-date.
  test.touch('rebuild/main.c')
  test.build('test.gyp', 'test_app', chdir=CHDIR)

  test.up_to_date('test.gyp', 'test_app', chdir=CHDIR)

  # Xcode runs postbuilds on every build, so targets with postbuilds are
  # never marked as up_to_date.
  if test.format != 'xcode':
    # Same for a framework bundle.
    test.build('test.gyp', 'test_framework_postbuilds', chdir=CHDIR)
    test.up_to_date('test.gyp', 'test_framework_postbuilds', chdir=CHDIR)

    # Test that an app bundle with a postbuild that touches the app binary needs
    # to be built only once.
    test.build('test.gyp', 'test_app_postbuilds', chdir=CHDIR)
    test.up_to_date('test.gyp', 'test_app_postbuilds', chdir=CHDIR)

  test.pass_test()

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
libv8-3.11.8.17 vendor/v8/build/gyp/test/mac/gyptest-rebuild.py
libv8-3.11.8.16 vendor/v8/build/gyp/test/mac/gyptest-rebuild.py
libv8-3.11.8.13 vendor/v8/build/gyp/test/mac/gyptest-rebuild.py
libv8-3.11.8.12 vendor/v8/build/gyp/test/mac/gyptest-rebuild.py
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/libv8-3.11.8.4/vendor/v8/build/gyp/test/mac/gyptest-rebuild.py
libv8-3.11.8.11 vendor/v8/build/gyp/test/mac/gyptest-rebuild.py
libv8-3.11.8.10 vendor/v8/build/gyp/test/mac/gyptest-rebuild.py
libv8-3.11.8.9 vendor/v8/build/gyp/test/mac/gyptest-rebuild.py
libv8-3.11.8.8 vendor/v8/build/gyp/test/mac/gyptest-rebuild.py
libv8-3.11.8.7 vendor/v8/build/gyp/test/mac/gyptest-rebuild.py
libv8-3.11.8.4 vendor/v8/build/gyp/test/mac/gyptest-rebuild.py
libv8-freebsd-3.11.8.3 vendor/v8/build/gyp/test/mac/gyptest-rebuild.py
libv8-3.11.8.3 vendor/v8/build/gyp/test/mac/gyptest-rebuild.py
libv8-3.11.8.1 vendor/v8/build/gyp/test/mac/gyptest-rebuild.py
libv8-3.11.8.0 vendor/v8/build/gyp/test/mac/gyptest-rebuild.py
libv8-3.10.8.0 vendor/v8/build/gyp/test/mac/gyptest-rebuild.py