Sha256: 6c137d1f5723b6e2eb6529e832e338023c8dffac360d4b146c3eff9b29ac5993

Contents?: true

Size: 1.4 KB

Versions: 40

Compression:

Stored size: 1.4 KB

Contents

#!/usr/bin/env python

# Copyright (c) 2011 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 simple rules when using an explicit build target of 'all'.
"""

import TestGyp

test = TestGyp.TestGyp()

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

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

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

expect = """\
Hello from program.c
Hello from function1.in
Hello from function2.in
"""

if test.format == 'xcode':
  chdir = 'relocate/src/subdir1'
else:
  chdir = 'relocate/src'
test.run_built_executable('program', chdir=chdir, stdout=expect)

expect = """\
Hello from program.c
Hello from function3.in
"""

if test.format == 'xcode':
  chdir = 'relocate/src/subdir3'
else:
  chdir = 'relocate/src'
test.run_built_executable('program2', chdir=chdir, stdout=expect)

test.must_match('relocate/src/subdir2/file1.out', 'Hello from file1.in\n')
test.must_match('relocate/src/subdir2/file2.out', 'Hello from file2.in\n')

test.must_match('relocate/src/subdir2/file1.out2', 'Hello from file1.in\n')
test.must_match('relocate/src/subdir2/file2.out2', 'Hello from file2.in\n')

test.must_match('relocate/src/external/file1.external_rules.out',
                'Hello from file1.in\n')
test.must_match('relocate/src/external/file2.external_rules.out',
                'Hello from file2.in\n')

test.pass_test()

Version data entries

40 entries across 40 versions & 6 rubygems

Version Path
libv8-3.16.14.19.1 vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.19 vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.18 vendor/gyp/test/rules/gyptest-default.py
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/gyp/test/rules/gyptest-default.py
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.17 vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.16 vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.15 vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.14 vendor/gyp/test/rules/gyptest-default.py
libv8-tmpfork-3.16.14.13 vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.13 vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.12 vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.11 vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.10 vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.8 vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.8.rc1 vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.7 vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.6 vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.5 vendor/gyp/test/rules/gyptest-default.py
libv8-3.16.14.4 vendor/gyp/test/rules/gyptest-default.py