Sha256: a96cd9c7e357b4872ac14be5bb00cb056ba77109df1f9fa2db7c2bcc238eeefe

Contents?: true

Size: 1.37 KB

Versions: 24

Compression:

Stored size: 1.37 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 that targets have independent INTERMEDIATE_DIRs.
"""

import TestGyp

test = TestGyp.TestGyp()

test.run_gyp('test.gyp', chdir='src')
test.build('test.gyp', 'target1', chdir='src')
# Check stuff exists.
intermediate_file1 = test.read('src/outfile.txt')
test.must_contain(intermediate_file1, 'target1')

shared_intermediate_file1 = test.read('src/shared_outfile.txt')
test.must_contain(shared_intermediate_file1, 'shared_target1')

test.run_gyp('test2.gyp', chdir='src')
# Force the shared intermediate to be rebuilt.
test.sleep()
test.touch('src/shared_infile.txt')
test.build('test2.gyp', 'target2', chdir='src')
# Check INTERMEDIATE_DIR file didn't get overwritten but SHARED_INTERMEDIATE_DIR
# file did.
intermediate_file2 = test.read('src/outfile.txt')
test.must_contain(intermediate_file1, 'target1')
test.must_contain(intermediate_file2, 'target2')

shared_intermediate_file2 = test.read('src/shared_outfile.txt')
if shared_intermediate_file1 != shared_intermediate_file2:
  test.fail_test(shared_intermediate_file1 + ' != ' + shared_intermediate_file2)

test.must_contain(shared_intermediate_file1, 'shared_target2')
test.must_contain(shared_intermediate_file2, 'shared_target2')

test.pass_test()

Version data entries

24 entries across 24 versions & 4 rubygems

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