Sha256: 3168c75669f2e09f6b0bc38fe63fab597a98ea904f69da008ed25875bc62bd0e

Contents?: true

Size: 1.62 KB

Versions: 23

Compression:

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

"""
Make sure we generate a manifest file when linking binaries, including
handling AdditionalManifestFiles.
"""

import TestGyp

import sys

if sys.platform == 'win32':
  test = TestGyp.TestGyp(formats=['msvs', 'ninja'])

  CHDIR = 'linker-flags'
  test.run_gyp('generate-manifest.gyp', chdir=CHDIR)
  test.build('generate-manifest.gyp', test.ALL, chdir=CHDIR)
  test.built_file_must_exist('test_manifest_exe.exe.manifest', chdir=CHDIR)
  test.built_file_must_exist('test_manifest_dll.dll.manifest', chdir=CHDIR)

  # Must contain the Win7 support GUID, but not the Vista one (from
  # extra2.manifest).
  extra1_manifest = test.built_file_path(
      'test_manifest_extra1.exe.manifest', chdir=CHDIR)
  test.must_contain(extra1_manifest, '35138b9a-5d96-4fbd-8e2d-a2440225f93a')
  test.must_not_contain(extra1_manifest, 'e2011457-1546-43c5-a5fe-008deee3d3f0')

  # Must contain both.
  extra2_manifest = test.built_file_path(
      'test_manifest_extra2.exe.manifest', chdir=CHDIR)
  test.must_contain(extra2_manifest, '35138b9a-5d96-4fbd-8e2d-a2440225f93a')
  test.must_contain(extra2_manifest, 'e2011457-1546-43c5-a5fe-008deee3d3f0')

  # Same as extra2, but using list syntax instead.
  extra_list_manifest = test.built_file_path(
      'test_manifest_extra_list.exe.manifest', chdir=CHDIR)
  test.must_contain(extra_list_manifest, '35138b9a-5d96-4fbd-8e2d-a2440225f93a')
  test.must_contain(extra_list_manifest, 'e2011457-1546-43c5-a5fe-008deee3d3f0')

  test.pass_test()

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
libv8-3.16.14.19.1 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.19 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.18 vendor/gyp/test/win/gyptest-link-generate-manifest.py
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.17 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.16 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.15 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.14 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-tmpfork-3.16.14.13 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.13 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.12 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.11 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.10 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.8 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.8.rc1 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.7 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.6 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.5 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.4 vendor/gyp/test/win/gyptest-link-generate-manifest.py
libv8-3.16.14.3 vendor/gyp/test/win/gyptest-link-generate-manifest.py