Sha256: f4d972b9d0f2b520e323d44df4a662e73a31e5a5dddc46bd55616b7b46d77575

Contents?: true

Size: 1.49 KB

Versions: 23

Compression:

Stored size: 1.49 KB

Contents

#!/usr/bin/env python

# Copyright (c) 2012 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', 'android'):
  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,
                           subdir='dir1')

test.pass_test()

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
libv8-3.16.14.19.1 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.19 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.18 vendor/gyp/test/additional-targets/gyptest-additional.py
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.17 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.16 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.15 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.14 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-tmpfork-3.16.14.13 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.13 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.12 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.11 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.10 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.8 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.8.rc1 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.7 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.6 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.5 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.4 vendor/gyp/test/additional-targets/gyptest-additional.py
libv8-3.16.14.3 vendor/gyp/test/additional-targets/gyptest-additional.py