Sha256: 3fa4ff02d9c77afeb7a1eab920d92eff09da632e897d4c165c96e4737a59cb56

Contents?: true

Size: 1.05 KB

Versions: 39

Compression:

Stored size: 1.05 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 the default build target.
"""

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.2 vendor/gyp/test/include_dirs/gyptest-default.py
libv8-3.16.14.1 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-3.16.14.0 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-3.11.8.17 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-3.11.8.16 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-3.11.8.13 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-3.11.8.12 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/libv8-3.11.8.4/vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-3.11.8.11 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-3.11.8.10 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-3.11.8.9 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-3.11.8.8 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-3.11.8.7 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-3.11.8.4 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-freebsd-3.11.8.3 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-3.11.8.3 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-3.11.8.1 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-3.11.8.0 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py
libv8-3.10.8.0 vendor/v8/build/gyp/test/include_dirs/gyptest-default.py