Sha256: 4849e82abc87febd72696e6f7854c5dbe020e60d8b85422c4daf4733390422c1

Contents?: true

Size: 1.61 KB

Versions: 16

Compression:

Stored size: 1.61 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', test.ALL, 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')

expect = """\
Hello from program.c
Got 41.
"""

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

test.pass_test()

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
libv8-3.11.8.17 vendor/v8/build/gyp/test/rules/gyptest-all.py
libv8-3.11.8.16 vendor/v8/build/gyp/test/rules/gyptest-all.py
libv8-3.11.8.13 vendor/v8/build/gyp/test/rules/gyptest-all.py
libv8-3.11.8.12 vendor/v8/build/gyp/test/rules/gyptest-all.py
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/libv8-3.11.8.4/vendor/v8/build/gyp/test/rules/gyptest-all.py
libv8-3.11.8.11 vendor/v8/build/gyp/test/rules/gyptest-all.py
libv8-3.11.8.10 vendor/v8/build/gyp/test/rules/gyptest-all.py
libv8-3.11.8.9 vendor/v8/build/gyp/test/rules/gyptest-all.py
libv8-3.11.8.8 vendor/v8/build/gyp/test/rules/gyptest-all.py
libv8-3.11.8.7 vendor/v8/build/gyp/test/rules/gyptest-all.py
libv8-3.11.8.4 vendor/v8/build/gyp/test/rules/gyptest-all.py
libv8-freebsd-3.11.8.3 vendor/v8/build/gyp/test/rules/gyptest-all.py
libv8-3.11.8.3 vendor/v8/build/gyp/test/rules/gyptest-all.py
libv8-3.11.8.1 vendor/v8/build/gyp/test/rules/gyptest-all.py
libv8-3.11.8.0 vendor/v8/build/gyp/test/rules/gyptest-all.py
libv8-3.10.8.0 vendor/v8/build/gyp/test/rules/gyptest-all.py