Sha256: a5c500f151187e25970d53d5307dd0fb020f8141dd8a89d418c09ebafa50f5cb

Contents?: true

Size: 923 Bytes

Versions: 5

Compression:

Stored size: 923 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',
  'standalone_static_library',
  'target_name',
  'type',
]

test = TestGyp.TestGyp()

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

5 entries across 5 versions & 2 rubygems

Version Path
mt-libuv-4.1.04 ext/gyp/test/configurations/invalid/gyptest-configurations.py
mt-libuv-4.1.03 ext/gyp/test/configurations/invalid/gyptest-configurations.py
mt-libuv-4.1.02 ext/gyp/test/configurations/invalid/gyptest-configurations.py
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/invalid/gyptest-configurations.py
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/invalid/gyptest-configurations.py