Sha256: 9914820bad73bc80b287a367286c0549b3c752516add9ed3bdcb632c8f09ed86

Contents?: true

Size: 998 Bytes

Versions: 39

Compression:

Stored size: 998 Bytes

Contents

#!/usr/bin/env python

# Copyright (c) 2010 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 build of an executable in three different configurations.
"""

import TestGyp

# Keys that do not belong inside a configuration dictionary.
invalid_configuration_keys = [
  'actions',
  'all_dependent_settings',
  'configurations',
  'dependencies',
  'direct_dependent_settings',
  'libraries',
  'link_settings',
  'sources',
  'target_name',
  'type',
]

test = TestGyp.TestGyp()

if test.format == 'scons':
  test.skip_test('TODO: http://code.google.com/p/gyp/issues/detail?id=176\n')

for test_key in invalid_configuration_keys:
  test.run_gyp('%s.gyp' % test_key, status=1, stderr=None)
  expect = ['%s not allowed in the Debug configuration, found in target '
            '%s.gyp:configurations#target' % (test_key, test_key)]
  test.must_contain_all_lines(test.stderr(), expect)

test.pass_test()

Version data entries

39 entries across 39 versions & 5 rubygems

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