Sha256: 7077977fc8b4a635fe759ddf5959760d5f9bf879af207f649d7d3c64184a7de1

Contents?: true

Size: 1.6 KB

Versions: 16

Compression:

Stored size: 1.6 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 that a rule that generates multiple outputs rebuilds
correctly when the inputs change.
"""

import TestGyp

test = TestGyp.TestGyp(workdir='workarea_default')

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

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


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

expect = """\
Hello from main.c
Hello from prog1.in!
Hello from prog2.in!
"""

test.run_built_executable('program', chdir='relocate/src', stdout=expect)

test.up_to_date('same_target.gyp', 'program', chdir='relocate/src')


test.sleep()
contents = test.read(['relocate', 'src', 'prog1.in'])
contents = contents.replace('!', ' AGAIN!')
test.write(['relocate', 'src', 'prog1.in'], contents)

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

expect = """\
Hello from main.c
Hello from prog1.in AGAIN!
Hello from prog2.in!
"""

test.run_built_executable('program', chdir='relocate/src', stdout=expect)

test.up_to_date('same_target.gyp', 'program', chdir='relocate/src')


test.sleep()
contents = test.read(['relocate', 'src', 'prog2.in'])
contents = contents.replace('!', ' AGAIN!')
test.write(['relocate', 'src', 'prog2.in'], contents)

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

expect = """\
Hello from main.c
Hello from prog1.in AGAIN!
Hello from prog2.in AGAIN!
"""

test.run_built_executable('program', chdir='relocate/src', stdout=expect)

test.up_to_date('same_target.gyp', 'program', chdir='relocate/src')


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-rebuild/gyptest-default.py
libv8-3.11.8.16 vendor/v8/build/gyp/test/rules-rebuild/gyptest-default.py
libv8-3.11.8.13 vendor/v8/build/gyp/test/rules-rebuild/gyptest-default.py
libv8-3.11.8.12 vendor/v8/build/gyp/test/rules-rebuild/gyptest-default.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-rebuild/gyptest-default.py
libv8-3.11.8.11 vendor/v8/build/gyp/test/rules-rebuild/gyptest-default.py
libv8-3.11.8.10 vendor/v8/build/gyp/test/rules-rebuild/gyptest-default.py
libv8-3.11.8.9 vendor/v8/build/gyp/test/rules-rebuild/gyptest-default.py
libv8-3.11.8.8 vendor/v8/build/gyp/test/rules-rebuild/gyptest-default.py
libv8-3.11.8.7 vendor/v8/build/gyp/test/rules-rebuild/gyptest-default.py
libv8-3.11.8.4 vendor/v8/build/gyp/test/rules-rebuild/gyptest-default.py
libv8-freebsd-3.11.8.3 vendor/v8/build/gyp/test/rules-rebuild/gyptest-default.py
libv8-3.11.8.3 vendor/v8/build/gyp/test/rules-rebuild/gyptest-default.py
libv8-3.11.8.1 vendor/v8/build/gyp/test/rules-rebuild/gyptest-default.py
libv8-3.11.8.0 vendor/v8/build/gyp/test/rules-rebuild/gyptest-default.py
libv8-3.10.8.0 vendor/v8/build/gyp/test/rules-rebuild/gyptest-default.py