Sha256: 22c6dd9da770991988ef5e7a6c39a74f97e023f10f6182c15e4945c3baf20f4c

Contents?: true

Size: 1.06 KB

Versions: 39

Compression:

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

"""
Verifies use of include_dirs when using an explicit build target of 'all'.
"""

import TestGyp

test = TestGyp.TestGyp()

if test.format == 'scons':
  test.skip_test('TODO: http://code.google.com/p/gyp/issues/detail?id=176\n')

test.run_gyp('includes.gyp', chdir='src')

test.relocate('src', 'relocate/src')

test.build('includes.gyp', test.ALL, chdir='relocate/src')

expect = """\
Hello from includes.c
Hello from inc.h
Hello from include1.h
Hello from subdir/inc2/include2.h
Hello from shadow2/shadow.h
"""
test.run_built_executable('includes', stdout=expect, chdir='relocate/src')

if test.format == 'xcode':
  chdir='relocate/src/subdir'
else:
  chdir='relocate/src'

expect = """\
Hello from subdir/subdir_includes.c
Hello from subdir/inc.h
Hello from include1.h
Hello from subdir/inc2/include2.h
"""
test.run_built_executable('subdir_includes', stdout=expect, chdir=chdir)

test.pass_test()

Version data entries

39 entries across 39 versions & 5 rubygems

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