Sha256: 0bee75afddf5fc61a4ac3a9288e33e96a6c79734f1a6a1dbb0b4aee3b352c5cd

Contents?: true

Size: 1.34 KB

Versions: 23

Compression:

Stored size: 1.34 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 objc settings are handled correctly.
"""

import TestGyp

import sys

if sys.platform == 'darwin':
  # set |match| to ignore build stderr output.
  test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'],
                         match = lambda a, b: True)

  CHDIR = 'objc-gc'
  test.run_gyp('test.gyp', chdir=CHDIR)

  build_error_code = {
    'xcode': [1, 65],  # Linker error code. 1 on Xcode 3, 65 on Xcode 4
    'make': 2,
    'ninja': 1,
  }[test.format]

  test.build('test.gyp', 'gc_exe_fails', chdir=CHDIR, status=build_error_code)
  test.build(
      'test.gyp', 'gc_off_exe_req_lib', chdir=CHDIR, status=build_error_code)

  test.build('test.gyp', 'gc_req_exe', chdir=CHDIR)
  test.run_built_executable('gc_req_exe', chdir=CHDIR, stdout="gc on: 1\n")

  test.build('test.gyp', 'gc_exe_req_lib', chdir=CHDIR)
  test.run_built_executable('gc_exe_req_lib', chdir=CHDIR, stdout="gc on: 1\n")

  test.build('test.gyp', 'gc_exe', chdir=CHDIR)
  test.run_built_executable('gc_exe', chdir=CHDIR, stdout="gc on: 1\n")

  test.build('test.gyp', 'gc_off_exe', chdir=CHDIR)
  test.run_built_executable('gc_off_exe', chdir=CHDIR, stdout="gc on: 0\n")

  test.pass_test()

Version data entries

23 entries across 23 versions & 3 rubygems

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