Sha256: 6ef3b9debc6894c337a4ebc4defb9aa6f2bc5771130f7aa25a89cb66f79e22b1

Contents?: true

Size: 1.04 KB

Versions: 23

Compression:

Stored size: 1.04 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 xcode-style GCC_... settings are handled properly.
"""

import TestGyp

import sys

def IgnoreOutput(string, expected_string):
  return True

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

  CHDIR = 'xcode-gcc'
  test.run_gyp('test.gyp', chdir=CHDIR)

  # List of targets that'll pass. It expects targets of the same name with
  # '-fail' appended that'll fail to build.
  targets = [
    'warn_about_invalid_offsetof_macro',
    'warn_about_missing_newline',
  ]

  for target in targets:
    test.build('test.gyp', target, chdir=CHDIR)
    test.built_file_must_exist(target, chdir=CHDIR)
    fail_target = target + '-fail'
    test.build('test.gyp', fail_target, chdir=CHDIR, status=None,
               stderr=None, match=IgnoreOutput)
    test.built_file_must_not_exist(fail_target, chdir=CHDIR)

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