Sha256: 0c546bdf909bba380dfc8bfec24fcfec11de252ea2b14f94c813b6d6d4b8bf09

Contents?: true

Size: 976 Bytes

Versions: 5

Compression:

Stored size: 976 Bytes

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()

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

5 entries across 5 versions & 2 rubygems

Version Path
mt-libuv-4.1.04 ext/gyp/test/include_dirs/gyptest-all.py
mt-libuv-4.1.03 ext/gyp/test/include_dirs/gyptest-all.py
mt-libuv-4.1.02 ext/gyp/test/include_dirs/gyptest-all.py
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/gyp/test/include_dirs/gyptest-all.py
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/gyp/test/include_dirs/gyptest-all.py