Sha256: 5f50a8c388fedb82859348a63a813946586ac2699706b4799c165126c204f124

Contents?: true

Size: 1.09 KB

Versions: 41

Compression:

Stored size: 1.09 KB

Contents

#!/usr/bin/env python

# Copyright (c) 2009 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.

"""
Tests the msvs specific msvs_target_platform option.
"""

import TestGyp
import TestCommon


def RunX64(exe, stdout):
  try:
    test.run_built_executable(exe, stdout=stdout)
  except WindowsError, e:
    # Assume the exe is 64-bit if it can't load on 32-bit systems.
    # Both versions of the error are required because different versions
    # of python seem to return different errors for invalid exe type.
    if e.errno != 193 and '[Error 193]' not in str(e):
      raise


test = TestGyp.TestGyp(formats=['msvs'])

test.run_gyp('configurations.gyp')

test.set_configuration('Debug|x64')
test.build('configurations.gyp', rebuild=True)
RunX64('front_left', stdout=('left\n'))
RunX64('front_right', stdout=('right\n'))

test.set_configuration('Debug|Win32')
test.build('configurations.gyp', rebuild=True)
RunX64('front_left', stdout=('left\n'))
test.run_built_executable('front_right', stdout=('right\n'))

test.pass_test()

Version data entries

41 entries across 41 versions & 6 rubygems

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