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.4 vendor/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.16.14.3 vendor/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.16.14.2 vendor/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.16.14.1 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.16.14.0 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.11.8.17 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.11.8.16 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.11.8.13 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.11.8.12 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.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/target_platform/gyptest-target_platform.py
libv8-3.11.8.11 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.11.8.10 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.11.8.9 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.11.8.8 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.11.8.7 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.11.8.4 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-freebsd-3.11.8.3 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.11.8.3 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.11.8.1 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.py
libv8-3.11.8.0 vendor/v8/build/gyp/test/configurations/target_platform/gyptest-target_platform.py