Sha256: 5caf1d8eeb7a8bc91b564d90644219b3fd5d783aed966e003c8e39bc4c60be7e

Contents?: true

Size: 1.43 KB

Versions: 16

Compression:

Stored size: 1.43 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 simple actions when using an explicit build target of 'all'.
"""

import TestGyp

test = TestGyp.TestGyp()

test.run_gyp('all.gyp', chdir='src')
test.relocate('src', 'relocate/src')

# Build all.
test.build('all.gyp', chdir='relocate/src')

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

# Output is as expected.
file_content = 'Hello from emit.py\n'
test.built_file_must_match('out2.txt', file_content, chdir=chdir)

test.built_file_must_not_exist('out.txt', chdir='relocate/src')
test.built_file_must_not_exist('foolib1',
                               type=test.SHARED_LIB,
                               chdir=chdir)

# TODO(mmoss) Make consistent with scons, with 'dir1' before 'out/Default'?
if test.format in ('make', 'ninja'):
  chdir='relocate/src'
else:
  chdir='relocate/src/dir1'

# Build the action explicitly.
test.build('actions.gyp', 'action1_target', chdir=chdir)

# Check that things got run.
file_content = 'Hello from emit.py\n'
test.built_file_must_exist('out.txt', chdir=chdir)

# Build the shared library explicitly.
test.build('actions.gyp', 'foolib1', chdir=chdir)

test.built_file_must_exist('foolib1',
                           type=test.SHARED_LIB,
                           chdir=chdir)

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