Sha256: 1ee3e7eb6216df962d40db9399d15e6b4e8adc740caf18b3bec0c3338069313c

Contents?: true

Size: 1.18 KB

Versions: 25

Compression:

Stored size: 1.18 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.

"""
Test variable expansion of '<!()' syntax commands.
"""

import os

import TestGyp

test = TestGyp.TestGyp(format='gypd')

expect = test.read('commands.gyp.stdout').replace('\r', '')

test.run_gyp('commands.gyp',
             '--debug', 'variables',
             stdout=expect, ignore_line_numbers=True)

# Verify the commands.gypd against the checked-in expected contents.
#
# Normally, we should canonicalize line endings in the expected
# contents file setting the Subversion svn:eol-style to native,
# but that would still fail if multiple systems are sharing a single
# workspace on a network-mounted file system.  Consequently, we
# massage the Windows line endings ('\r\n') in the output to the
# checked-in UNIX endings ('\n').

contents = test.read('commands.gypd').replace('\r', '')
expect = test.read('commands.gypd.golden').replace('\r', '')
if not test.match(contents, expect):
  print "Unexpected contents of `commands.gypd'"
  test.diff(expect, contents, 'commands.gypd ')
  test.fail_test()

test.pass_test()

Version data entries

25 entries across 25 versions & 4 rubygems

Version Path
libv8-3.16.14.19.1 vendor/gyp/test/variables/commands/gyptest-commands.py
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/gyp/test/variables/commands/gyptest-commands.py
libv8-3.16.14.19 vendor/gyp/test/variables/commands/gyptest-commands.py
libv8-3.16.14.18 vendor/gyp/test/variables/commands/gyptest-commands.py
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/gyp/test/variables/commands/gyptest-commands.py
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/variables/commands/gyptest-commands.py
libv8-3.16.14.17 vendor/gyp/test/variables/commands/gyptest-commands.py
libv8-3.16.14.16 vendor/gyp/test/variables/commands/gyptest-commands.py
libv8-3.16.14.15 vendor/gyp/test/variables/commands/gyptest-commands.py
libv8-3.16.14.14 vendor/gyp/test/variables/commands/gyptest-commands.py
libv8-tmpfork-3.16.14.13 vendor/gyp/test/variables/commands/gyptest-commands.py
libv8-3.16.14.13 vendor/gyp/test/variables/commands/gyptest-commands.py
libv8-3.16.14.12 vendor/gyp/test/variables/commands/gyptest-commands.py
libv8-3.16.14.11 vendor/gyp/test/variables/commands/gyptest-commands.py
libv8-3.16.14.10 vendor/gyp/test/variables/commands/gyptest-commands.py
libv8-3.16.14.8 vendor/gyp/test/variables/commands/gyptest-commands.py
libv8-3.16.14.8.rc1 vendor/gyp/test/variables/commands/gyptest-commands.py
libv8-3.16.14.7 vendor/gyp/test/variables/commands/gyptest-commands.py
libv8-3.16.14.6 vendor/gyp/test/variables/commands/gyptest-commands.py
libv8-3.16.14.5 vendor/gyp/test/variables/commands/gyptest-commands.py