Sha256: 4adca2ef8f9e4bf9f00e5ad9b35ffd739ccc5cfc97b9591a615834f391627778

Contents?: true

Size: 1.26 KB

Versions: 44

Compression:

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

"""
Verifies that msvs_list_excluded_files=0 doesn't list files that would
normally be in _excluded_files, and that if that flag is not set, then they
are still listed.
"""

import os
import TestGyp

test = TestGyp.TestGyp(formats=['msvs'], workdir='workarea_all')


# with the flag set to 0
try:
  os.environ['GYP_GENERATOR_FLAGS'] = 'msvs_list_excluded_files=0'
  test.run_gyp('hello_exclude.gyp')
finally:
  del os.environ['GYP_GENERATOR_FLAGS']
if test.uses_msbuild:
  test.must_not_contain('hello.vcxproj', 'hello_mac')
else:
  test.must_not_contain('hello.vcproj', 'hello_mac')


# with the flag not set
test.run_gyp('hello_exclude.gyp')
if test.uses_msbuild:
  test.must_contain('hello.vcxproj', 'hello_mac')
else:
  test.must_contain('hello.vcproj', 'hello_mac')


# with the flag explicitly set to 1
try:
  os.environ['GYP_GENERATOR_FLAGS'] = 'msvs_list_excluded_files=1'
  test.run_gyp('hello_exclude.gyp')
finally:
  del os.environ['GYP_GENERATOR_FLAGS']
if test.uses_msbuild:
  test.must_contain('hello.vcxproj', 'hello_mac')
else:
  test.must_contain('hello.vcproj', 'hello_mac')


test.pass_test()

Version data entries

44 entries across 44 versions & 7 rubygems

Version Path
libv8-3.16.14.19.1 vendor/gyp/test/msvs/list_excluded/gyptest-all.py
mt-libuv-4.1.04 ext/gyp/test/msvs/list_excluded/gyptest-all.py
mt-libuv-4.1.03 ext/gyp/test/msvs/list_excluded/gyptest-all.py
mt-libuv-4.1.02 ext/gyp/test/msvs/list_excluded/gyptest-all.py
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/list_excluded/gyptest-all.py
libv8-3.16.14.19 vendor/gyp/test/msvs/list_excluded/gyptest-all.py
libv8-3.16.14.18 vendor/gyp/test/msvs/list_excluded/gyptest-all.py
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/list_excluded/gyptest-all.py
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/msvs/list_excluded/gyptest-all.py
libv8-3.16.14.17 vendor/gyp/test/msvs/list_excluded/gyptest-all.py
libv8-3.16.14.16 vendor/gyp/test/msvs/list_excluded/gyptest-all.py
libv8-3.16.14.15 vendor/gyp/test/msvs/list_excluded/gyptest-all.py
libv8-3.16.14.14 vendor/gyp/test/msvs/list_excluded/gyptest-all.py
libv8-tmpfork-3.16.14.13 vendor/gyp/test/msvs/list_excluded/gyptest-all.py
libv8-3.16.14.13 vendor/gyp/test/msvs/list_excluded/gyptest-all.py
libv8-3.16.14.12 vendor/gyp/test/msvs/list_excluded/gyptest-all.py
libv8-3.16.14.11 vendor/gyp/test/msvs/list_excluded/gyptest-all.py
libv8-3.16.14.10 vendor/gyp/test/msvs/list_excluded/gyptest-all.py
libv8-3.16.14.8 vendor/gyp/test/msvs/list_excluded/gyptest-all.py
libv8-3.16.14.8.rc1 vendor/gyp/test/msvs/list_excluded/gyptest-all.py